another new script for tunneling. starting to achieve critical mass for
[feisty_meow.git] / scripts / security / tell_zooty_our_ip.sh
index f227d7905a51c4e0be70563d37ebf3f57da84574..5e8aa2e63ccc0eedcff7b0d3df7074c1f47c97ab 100644 (file)
@@ -33,7 +33,9 @@ echo "my ip is [$my_ip]"
 # gets us access to the server.  this needs to be on the local machine
 # for sftp to run without a login prompt.
 sudo -u $local_user sftp $username@$server <<eof
-mkdir gen
+if [ ! -d gen ]; then
+  mkdir gen
+fi
 cd gen
 put $ip_file $(hostname | sed -e "s/\..*$//")_ip.txt
 eof