From e34736324913dbd331c45da2a46e1f8c4d543f03 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Sun, 8 Feb 2015 14:30:00 -0500 Subject: [PATCH] Makes adding to the associative arrays correct. --- hoarder.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hoarder.sh b/hoarder.sh index 0983a0d..590451e 100755 --- a/hoarder.sh +++ b/hoarder.sh @@ -274,7 +274,7 @@ while true; do # add the torrent to the queue if it is not already in the queue if [[ ! ${TORRENT_QUEUE[${torrent_hash}]+_} ]]; then - $TORRENT_QUEUE[$torrent_hash]="${sub_file}" + TORRENT_QUEUE[$torrent_hash]="${sub_file}" fi fi done @@ -289,7 +289,7 @@ while true; do # add the torrent to the queue if it is not already in the queue if [[ ! ${TORRENT_QUEUE[${torrent_hash}]+_} ]]; then - $TORRENT_QUEUE[$torrent_hash]="${file}" + TORRENT_QUEUE[$torrent_hash]="${file}" fi fi done @@ -342,7 +342,7 @@ while true; do # start the download and record the PID rsync -hrvP --inplace "${SSH_USER}@${SSH_SERVER}:${SSH_SERVER_DOWNLOAD_PATH}/${torrent_name}" "${TORRENT_TMP_DOWNLOAD}/" & - ${RUNNING_RSYNCS[${torrent_hash}]}=$! + RUNNING_RSYNCS[${torrent_hash}]=$! fi done fi