Make remote:install idempotent
This commit is contained in:
parent
c1f280a41e
commit
aa167f5e29
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user