mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
ini-tools.sh: Fix new call semantics
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5d2ec44113
commit
d2a4f3d5bc
2 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
export LANG=POSIX
|
export LANG=POSIX
|
||||||
dir=`dirname $0`
|
dir=`dirname $0`
|
||||||
inifile=$1
|
inifile="$1"
|
||||||
. $dir/ini-tools.sh
|
. $dir/ini-tools.sh
|
||||||
|
|
||||||
cfg_section()
|
cfg_section()
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,11 @@ ini_value()
|
||||||
# echo "key=>$key<"
|
# echo "key=>$key<"
|
||||||
|
|
||||||
if [ "$key" = "$path" ]; then
|
if [ "$key" = "$path" ]; then
|
||||||
ini_section $path
|
ini_section "$inifile" "$path"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ini_section $sec | sed "
|
ini_section "$inifile" "$sec" | sed "
|
||||||
/^ *$key *=/ !d
|
/^ *$key *=/ !d
|
||||||
s/^ *$key *= *//
|
s/^ *$key *= *//
|
||||||
s/ *$//
|
s/ *$//
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue