summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSergey Udaltsov <sergey.udaltsov@gmail.com>2023-01-22 22:45:28 +0000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2023-01-22 22:45:28 +0000
commitbb774d0ed2f83f1a7b84ac94ada555dc741934d4 (patch)
tree2d19697a47181117256dc9fc0dc4c24d0571a6e1 /scripts
parent32f318042560fd564d72e2df3d58c886877d398f (diff)
Handy script for publishing
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/publish.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/publish.sh b/scripts/publish.sh
new file mode 100755
index 00000000..6d918e01
--- /dev/null
+++ b/scripts/publish.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ $# -lt 1 ] ; then
+ echo "Usage: $0 filename (acc)"
+ exit 1
+fi
+
+file=$1
+acc=${2:-svu}
+
+scp "$file" ${acc}@www.x.org:/home/svu/public_html
+echo "Check on http://www.x.org/~${acc}"
+