From d2a4f3d5bc58e696c0ebdb8cda40be0f951c6099 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 8 Nov 2016 16:22:01 +0000 Subject: [PATCH] ini-tools.sh: Fix new call semantics Signed-off-by: Jan Lindemann --- scripts/create-mkdebian.sh | 2 +- scripts/ini-tools.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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/ *$//