From 04efede480007f700f711a5b2540cc3fa6f67736 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Fri, 5 Feb 2016 20:24:55 -0500 Subject: [PATCH] Use lowercase a to declare array (closes #4) --- hoarder.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hoarder.sh b/hoarder.sh index 7dd3093..37e446e 100755 --- a/hoarder.sh +++ b/hoarder.sh @@ -243,9 +243,9 @@ END } # keep track of the .torrent files to be downloaded -declare -A TORRENT_QUEUE +declare -a TORRENT_QUEUE # keep track of the rsyncs to download torrent data -declare -A RUNNING_RSYNCS +declare -a RUNNING_RSYNCS # run indefinitely while true; do # check to make sure the path of the local .torrent files exists @@ -253,7 +253,7 @@ while true; do echo "${TORRENT_FILE_PATH} Does not exist" exit 1 fi - + OIFS="$IFS" IFS=$'\n' # enumerate the .torrent file directory