]> git.armaanb.net Git - bin.git/blobdiff - pubup
pubup: change subdomain and variable expansion
[bin.git] / pubup
diff --git a/pubup b/pubup
index d43be8ff68b5d26b11aa727e69772604df8e4685..1b6e85c73e663031b6631afbc2831803ef1577aa 100755 (executable)
--- a/pubup
+++ b/pubup
@@ -1,4 +1,4 @@
 #!/usr/bin/env sh
 
-rsync "$1" root@armaanb.net:/var/www/armaanb.net/
-echo "https://armaanb.net/"$(basename "$1") | tee /dev/tty | xclip -sel c
+rsync "$1" "root@armaanb.net:/var/www/ftp/pub/${2}"
+echo "https://ftp.armaanb.net/pub/"$(basename "$1") | tee /dev/tty | xclip -sel c