From a1fa1e686ab40dbda11c34fd0446c10e733b3e10 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Sun, 14 Dec 2025 00:34:07 -0500 Subject: Fix == for sh compat I get why but like :/ come on --- ssync-fetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssync-fetch') 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}" -- cgit v1.2.3-54-g00ecf