mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +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
|
||||
dir=`dirname $0`
|
||||
inifile=$1
|
||||
inifile="$1"
|
||||
. $dir/ini-tools.sh
|
||||
|
||||
cfg_section()
|
||||
|
|
|
|||
|
|
@ -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/ *$//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue