Changes to the variables

This commit is contained in:
2025-12-16 16:06:09 +02:00
parent d69e769ed0
commit 66adbd52a1
4 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,3 @@
REMOTE_PROGRESS=".remote-in-progress"
if [ -f $REMOTE_PROGRESS ]; then if [ -f $REMOTE_PROGRESS ]; then
echo "Waiting for remote-local.sh to finish..." echo "Waiting for remote-local.sh to finish..."
exit 0 exit 0
@@ -38,4 +36,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 \
--exclude $REMOTE_PROGRESS \
-e ssh . "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" -e ssh . "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}"

View File

@@ -1,5 +1,3 @@
REMOTE_PROGRESS=".remote-in-progress"
touch $REMOTE_PROGRESS touch $REMOTE_PROGRESS
sshpass -p "${SERVER_PASSWORD}" \ sshpass -p "${SERVER_PASSWORD}" \
@@ -28,6 +26,7 @@ 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 \
--exclude $REMOTE_PROGRESS \
-e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . \ -e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . \
$1 $1

View File

@@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
CACHE_FILE=".build-cache" CACHE_FILE=".build-cache"
REMOTE_PROGRESS=".remote-in-progress"
needs_build() { needs_build() {
# If cache file doesn't exist, require build # If cache file doesn't exist, require build

View File

@@ -153,9 +153,11 @@ echo -e "${GREEN}.vscode/sftp.json created successfully${NC}"
# Go through scripts, add variables and add them to project folder # Go through scripts, add variables and add them to project folder
if [ "$SFTP_ONLY" = true ]; then if [ "$SFTP_ONLY" = true ]; then
# Sftp only scripts
scripts=("local-remote.sh" "remote-local.sh" "sftp-watch.sh" "ssh.sh") scripts=("local-remote.sh" "remote-local.sh" "sftp-watch.sh" "ssh.sh")
else else
scripts=("watch-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh" "ssh.sh") # All scripts
scripts=("watch-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh" "ssh.sh" "split-conflicts.sh")
fi fi
for script in "${scripts[@]}"; do for script in "${scripts[@]}"; do
@@ -169,6 +171,7 @@ for script in "${scripts[@]}"; do
SERVER_HOST=\"${HOST}\" SERVER_HOST=\"${HOST}\"
SERVER_PASSWORD=\"${SSH_PASSWORD}\" SERVER_PASSWORD=\"${SSH_PASSWORD}\"
SERVER_PATH=\"${SERVER_PROJECT_PATH}/\" SERVER_PATH=\"${SERVER_PROJECT_PATH}/\"
REMOTE_PROGRESS=\".remote-in-progress\"
" > "${script}" " > "${script}"
# Append the rest of the upload core build script # Append the rest of the upload core build script