From bb7032bf09d88efdd341941872138b62da4bdb38 Mon Sep 17 00:00:00 2001 From: jcass Date: Fri, 6 Mar 2015 07:00:20 +0200 Subject: [PATCH] Declare $INI before reading ini --- filechanges/opt/musicbox/setsound.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filechanges/opt/musicbox/setsound.sh b/filechanges/opt/musicbox/setsound.sh index 5cc3704..9e797dd 100755 --- a/filechanges/opt/musicbox/setsound.sh +++ b/filechanges/opt/musicbox/setsound.sh @@ -79,6 +79,10 @@ then # Convert windows ini to unix dos2unix -n $CONFIG_FILE /tmp/settings.ini > /dev/null 2>&1 || true + #declare $INI before reading ini https://github.com/rudimeier/bash_ini_parser/issues/2 + unset INI + declare -A INI + # ini vars to mopidy settings read_ini /tmp/settings.ini