aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2025-12-14 00:34:07 -0500
committerSteph Enders <steph@senders.io>2025-12-14 00:34:07 -0500
commita1fa1e686ab40dbda11c34fd0446c10e733b3e10 (patch)
tree25918f7fbf744083296abc887d9351da7a469706
parentf5943bb301886984802384fdfcccbb3d97f797b7 (diff)
Fix == for sh compat
I get why but like :/ come on
-rw-r--r--VERSION2
-rwxr-xr-xssync-fetch4
2 files changed, 3 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 5f8c49b..2a5204d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-"December 2025" "2.1.1" \ No newline at end of file
+"December 2025" "2.1.2" \ No newline at end of file
diff --git a/ssync-fetch b/ssync-fetch
index 5c6e53d..e46c241 100755
--- a/ssync-fetch
+++ b/ssync-fetch
@@ -119,7 +119,7 @@ verbose_log "Writing temp files to ${tmp_dir} with timestamp ${ts}"
# GENERATE BATCH
-if [ "$BACKEND" == "sftp" ]; then
+if [ "$BACKEND" = "sftp" ]; then
batch_file=$tmp_dir/batch_${ts}
verbose_log "Converting the queue file to sftp batch file: ${batch_file}"
cat $QUEUE_FILE | xargs -I{} echo -e "@reget {} ${real_dest}/" > $batch_file
@@ -128,7 +128,7 @@ if [ "$BACKEND" == "sftp" ]; then
verbose_log "sftp -N ${ssh_id_param} -b ${batch_file} ${REMOTE_HOST_ARG}"
sftp -N ${ssh_id_param} -b ${batch_file} ${REMOTE_HOST_ARG}
-elif [ "$BACKEND" == "rsync" ]; then
+elif [ "$BACKEND" = "rsync" ]; then
verbose_log "Fetching files from queue file: $QUEUE_FILE"
verbose_log "Beginning download"
verbose_log "rsync --files-from=${QUEUE_FILE} rsync://${REMOTE_HOST_ARG} ${real_dest}"