dotfiles/.local/bin/scripts/iridion

10 lines
220 B
Bash
Executable File

#!/bin/sh
# Upload website to iridion
if test $# -eq 0
then echo "$0 site [index.html] [USER]"
else
site=$1
shift
scp -r "$@" "iridion:/home/${2:-$USER}/web/$site/public_html$(test "$#" -gt 1 || echo '/index.html')"
fi