aboutsummaryrefslogtreecommitdiff
path: root/ssync-fetch
diff options
context:
space:
mode:
Diffstat (limited to 'ssync-fetch')
-rwxr-xr-xssync-fetch4
1 files changed, 2 insertions, 2 deletions
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}"