diff --git a/scripts/create-mkdebian.sh b/scripts/create-mkdebian.sh index 2064433b..86c9b3e0 100644 --- a/scripts/create-mkdebian.sh +++ b/scripts/create-mkdebian.sh @@ -2,7 +2,7 @@ export LANG=POSIX dir=`dirname $0` -inifile=$1 +inifile="$1" . $dir/ini-tools.sh cfg_section() diff --git a/scripts/ini-tools.sh b/scripts/ini-tools.sh index 8c90fb29..8bd1db68 100644 --- a/scripts/ini-tools.sh +++ b/scripts/ini-tools.sh @@ -22,11 +22,11 @@ ini_value() # echo "key=>$key<" if [ "$key" = "$path" ]; then - ini_section $path + ini_section "$inifile" "$path" return 0 fi - ini_section $sec | sed " + ini_section "$inifile" "$sec" | sed " /^ *$key *=/ !d s/^ *$key *= *// s/ *$//