From aa167f5e2933b984543351b6db4f4b0c8602156e Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 1 Mar 2026 21:50:05 -0800 Subject: [PATCH] Make remote:install idempotent --- scripts/remote-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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