After ssh --git run remote local with delete flag
This commit is contained in:
@@ -24,4 +24,5 @@ sshpass -p "${SERVER_PASSWORD}" \
|
|||||||
--exclude watch-build.sh \
|
--exclude watch-build.sh \
|
||||||
--exclude sftp-watch.sh \
|
--exclude sftp-watch.sh \
|
||||||
--exclude split-conflicts.sh \
|
--exclude split-conflicts.sh \
|
||||||
-e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . # --exclude .git \
|
-e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . \
|
||||||
|
$1
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ elif [ "$1" = "--git" ]; then
|
|||||||
sshpass -p "$SERVER_PASSWORD" \
|
sshpass -p "$SERVER_PASSWORD" \
|
||||||
ssh -t $SERVER_USER@$SERVER_HOST \
|
ssh -t $SERVER_USER@$SERVER_HOST \
|
||||||
"cd $SERVER_PATH && ./lazygit"
|
"cd $SERVER_PATH && ./lazygit"
|
||||||
|
|
||||||
|
# After that sync remote with --delete flag
|
||||||
|
bash remote-local.sh --delete
|
||||||
else
|
else
|
||||||
sshpass -p "$SERVER_PASSWORD" \
|
sshpass -p "$SERVER_PASSWORD" \
|
||||||
ssh -t $SERVER_USER@$SERVER_HOST \
|
ssh -t $SERVER_USER@$SERVER_HOST \
|
||||||
|
|||||||
Reference in New Issue
Block a user