You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wish/remote_deploy.sh

23 lines
253 B
Bash

#!/bin/sh
set -eu
if test -v XDG_CONFIG_DIR; then
CFGDIR="$XDG_CONFIG_DIR"
else
CFGDIR="$HOME/.config"
fi
# Drop pre-existing values
USER=
HOST=
DIR=
. "$CFGDIR/wish/remote.sh.inc"
ssh -l "$USER" "$HOST" -t "
set -eu
cd $DIR
./deploy.sh $*
"