diff options
Diffstat (limited to 'etc/functions/put')
-rw-r--r-- | etc/functions/put | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/etc/functions/put b/etc/functions/put index b17663d..2e5390b 100644 --- a/etc/functions/put +++ b/etc/functions/put @@ -18,6 +18,14 @@ if [[ -z ${commands[curl]} ]]; then print -P "%B%F{yellow}curl not present, won't be able to check upload success%f%b" fi +function put_arclight { + hostname='arclight.derf0.net' + ssh_name='arclight' + target_dir='web/default/out/tmp' + server_prefix='https://arclight.derf0.net/tmp/' + max_size=0 +} + function put_epicentre { hostname='epicentre.derf0.net' ssh_name='epicentre' @@ -34,12 +42,11 @@ function put_chaosdorf { max_size=0 } -hosts=(epicentre chaosdorf) +hosts=(arclight epicentre chaosdorf) while [[ ${1} == -* ]] { case ${1} in -|--) shift; break ;; - -p) pic=1 ;; -r) make_random=1 ;; *) if [[ -n ${functions[put_${1#-}]} ]]; then @@ -66,10 +73,6 @@ if [[ -d ${1} ]] { remote_file=${file:t} -if (( pic )) { - hosts=(steel_pic) -} - if (( make_random )) { remote_file=$(mktemp -u XXXXXX) } |