some shell variable handling fixes

SVN-Revision: 7638
This commit is contained in:
Felix Fietkau
2007-06-15 15:59:56 +00:00
parent 74f84753e7
commit 5e6f8739be
2 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ uci_set() {
( # spawn a subshell so you don't mess up the current environment
uci_load "$PACKAGE"
config_get OLDVAL "$CONFIG" "$OPTION"
if [ "$OLDVAL" != "$VALUE" ]; then
if [ "x$OLDVAL" != "x$VALUE" ]; then
config_get type "$CONFIG" TYPE
[ -z "$type" ]
fi