From 7e5dedc2846dc2c6c7d1b25f2ce87fea18ea9469 Mon Sep 17 00:00:00 2001 From: Leons Aleksandrovs Date: Thu, 11 Dec 2025 11:10:12 +0200 Subject: [PATCH] add lazygit to exclude / and remove from project dir --- scripts/local-remote.sh | 1 + scripts/remote-local.sh | 1 + sync-project.sh | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/local-remote.sh b/scripts/local-remote.sh index b05df6e..127a320 100644 --- a/scripts/local-remote.sh +++ b/scripts/local-remote.sh @@ -20,6 +20,7 @@ sshpass -p "${SERVER_PASSWORD}" \ --include 'public/build/assets' \ --exclude 'public/build/assets/**' \ `# Project scripts` \ + --exclude "lazygit" \ --exclude ssh.sh \ --exclude remote-local.sh \ --exclude local-remote.sh \ diff --git a/scripts/remote-local.sh b/scripts/remote-local.sh index 0aef21f..b3f7a8f 100644 --- a/scripts/remote-local.sh +++ b/scripts/remote-local.sh @@ -13,6 +13,7 @@ sshpass -p "${SERVER_PASSWORD}" \ --exclude cache \ --exclude sitepress-multilingual-cms \ `# Project scripts` \ + --exclude "lazygit" \ --exclude ssh.sh \ --exclude remote-local.sh \ --exclude local-remote.sh \ diff --git a/sync-project.sh b/sync-project.sh index f781c14..5d272c4 100755 --- a/sync-project.sh +++ b/sync-project.sh @@ -184,7 +184,6 @@ done if [ "$SFTP_ONLY" = false ]; then echo "Uploading lazygit to server..." - cp "${SCRIPT_DIR}/lazygit" . sshpass -p "${SSH_PASSWORD}" scp "${SCRIPT_DIR}/lazygit" ${SERVER_HOST}:${SERVER_PROJECT_PATH} echo -e "${GREEN}lazygit uploaded successfully${NC}"