diff --git a/scripts/remote-install.sh b/scripts/remote-install.sh index c5a1beb..5e766a6 100755 --- a/scripts/remote-install.sh +++ b/scripts/remote-install.sh @@ -12,5 +12,10 @@ source "$ROOT_DIR/scripts/config.sh" ssh "$SSH_HOST" bash <<'SCRIPT' set -e DEST="${DEST:-$HOME/toes}" -git clone https://git.nose.space/defunkt/toes "$DEST" && cd "$DEST" && ./scripts/install.sh +if [ -d "$DEST/.git" ]; then + cd "$DEST" && git pull +else + git clone https://git.nose.space/defunkt/toes "$DEST" && cd "$DEST" +fi +./scripts/install.sh SCRIPT