dotfiles/.local/bin/scripts/iridion

10 lines
236 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
2024-01-12 09:30:27 +00:00
scp -r "$@" "iridion:/home/${2:-$USER}/web/$site/public_html$(test "$#" -gt 1 || test -d "$1" || echo '/index.html')"
2023-05-25 20:37:55 +00:00
fi