add lazygit to exclude / and remove from project dir
This commit is contained in:
@@ -20,6 +20,7 @@ sshpass -p "${SERVER_PASSWORD}" \
|
|||||||
--include 'public/build/assets' \
|
--include 'public/build/assets' \
|
||||||
--exclude 'public/build/assets/**' \
|
--exclude 'public/build/assets/**' \
|
||||||
`# Project scripts` \
|
`# Project scripts` \
|
||||||
|
--exclude "lazygit" \
|
||||||
--exclude ssh.sh \
|
--exclude ssh.sh \
|
||||||
--exclude remote-local.sh \
|
--exclude remote-local.sh \
|
||||||
--exclude local-remote.sh \
|
--exclude local-remote.sh \
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ sshpass -p "${SERVER_PASSWORD}" \
|
|||||||
--exclude cache \
|
--exclude cache \
|
||||||
--exclude sitepress-multilingual-cms \
|
--exclude sitepress-multilingual-cms \
|
||||||
`# Project scripts` \
|
`# Project scripts` \
|
||||||
|
--exclude "lazygit" \
|
||||||
--exclude ssh.sh \
|
--exclude ssh.sh \
|
||||||
--exclude remote-local.sh \
|
--exclude remote-local.sh \
|
||||||
--exclude local-remote.sh \
|
--exclude local-remote.sh \
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ done
|
|||||||
if [ "$SFTP_ONLY" = false ]; then
|
if [ "$SFTP_ONLY" = false ]; then
|
||||||
echo "Uploading lazygit to server..."
|
echo "Uploading lazygit to server..."
|
||||||
|
|
||||||
cp "${SCRIPT_DIR}/lazygit" .
|
|
||||||
sshpass -p "${SSH_PASSWORD}" scp "${SCRIPT_DIR}/lazygit" ${SERVER_HOST}:${SERVER_PROJECT_PATH}
|
sshpass -p "${SSH_PASSWORD}" scp "${SCRIPT_DIR}/lazygit" ${SERVER_HOST}:${SERVER_PROJECT_PATH}
|
||||||
echo -e "${GREEN}lazygit uploaded successfully${NC}"
|
echo -e "${GREEN}lazygit uploaded successfully${NC}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user