]> git.armaanb.net Git - bin.git/commitdiff
pubup: add script
authorArmaan Bhojwani <me@armaanb.net>
Wed, 7 Apr 2021 01:38:17 +0000 (21:38 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 7 Apr 2021 01:38:17 +0000 (21:38 -0400)
pubup [new file with mode: 0755]

diff --git a/pubup b/pubup
new file mode 100755 (executable)
index 0000000..d43be8f
--- /dev/null
+++ b/pubup
@@ -0,0 +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