Why do I torture myself so
authorCameron Ball <cameron@cameron1729.xyz>
Mon, 8 Apr 2019 18:07:06 +0000 (02:07 +0800)
committerCameron Ball <cameron@cameron1729.xyz>
Mon, 8 Apr 2019 18:07:06 +0000 (02:07 +0800)
SongSync.sh

index f5cb9ea..4887127 100755 (executable)
@@ -55,7 +55,7 @@ if [ "$1" = "apply" ]; then
 
             if [ "${removes[${path}]}" = "$hash" ]; then
                 echo "Same hash ($hash) and path ($path) in adds and removes. Ignoring."
-                unset removes["$path"]
+                unset 'removes[$path]'
                 continue
             fi
 
@@ -74,7 +74,7 @@ if [ "$1" = "apply" ]; then
             if [ -z "${removes[${path}]}" ]; then
                 if [ "${adds[${path}]}" = "$hash" ]; then
                     echo "Same hash ($hash) and path ($path) in adds and removes. Ignoring."
-                    unset adds["$path"]
+                    unset 'adds[$path]'
                     continue
                 fi