dotfiles/.local/bin/scripts/iridion

10 lines
220 B
Plaintext
Raw Normal View History

2023-04-27 12:28:04 +00:00
#!/bin/sh
# Upload website to iridion
2023-05-25 20:37:55 +00:00
if test $# -eq 0
then echo "$0 site [index.html] [USER]"
else
2023-04-27 12:28:04 +00:00
site=$1
shift
2023-05-25 20:37:55 +00:00
scp -r "$@" "iridion:/home/${2:-$USER}/web/$site/public_html$(test "$#" -gt 1 || echo '/index.html')"
fi