From ff7e2fef93afe89f054e85597eb8701ef45d243e Mon Sep 17 00:00:00 2001 From: Leons Aleksandrovs Date: Mon, 15 Dec 2025 10:58:06 +0200 Subject: [PATCH] After ssh --git run remote local with delete flag --- scripts/remote-local.sh | 3 ++- scripts/ssh.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/remote-local.sh b/scripts/remote-local.sh index 2984150..0883390 100644 --- a/scripts/remote-local.sh +++ b/scripts/remote-local.sh @@ -24,4 +24,5 @@ sshpass -p "${SERVER_PASSWORD}" \ --exclude watch-build.sh \ --exclude sftp-watch.sh \ --exclude split-conflicts.sh \ - -e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . # --exclude .git \ + -e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . \ + $1 diff --git a/scripts/ssh.sh b/scripts/ssh.sh index f14c9a2..1a7df14 100644 --- a/scripts/ssh.sh +++ b/scripts/ssh.sh @@ -17,6 +17,9 @@ elif [ "$1" = "--git" ]; then sshpass -p "$SERVER_PASSWORD" \ ssh -t $SERVER_USER@$SERVER_HOST \ "cd $SERVER_PATH && ./lazygit" + + # After that sync remote with --delete flag + bash remote-local.sh --delete else sshpass -p "$SERVER_PASSWORD" \ ssh -t $SERVER_USER@$SERVER_HOST \