diff options
author | Sergey Udaltsov <sergey.udaltsov@gmail.com> | 2023-01-22 22:45:28 +0000 |
---|---|---|
committer | Sergey Udaltsov <sergey.udaltsov@gmail.com> | 2023-01-22 22:45:28 +0000 |
commit | bb774d0ed2f83f1a7b84ac94ada555dc741934d4 (patch) | |
tree | 2d19697a47181117256dc9fc0dc4c24d0571a6e1 /scripts | |
parent | 32f318042560fd564d72e2df3d58c886877d398f (diff) |
Handy script for publishing
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish.sh | 13 |
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}" + |