ini-config : always reenable xtrace on return
These return paths doesn't renable xtrace, so output mysteriously goes
missing until the next time it is enabled.
Change-Id: I3a8018dfa9397c07534970c39fba8dc10afcbe41
diff --git a/inc/ini-config b/inc/ini-config
index 26401f3..8e7c018 100644
--- a/inc/ini-config
+++ b/inc/ini-config
@@ -104,7 +104,10 @@
local option=$3
local value=$4
- [[ -z $section || -z $option ]] && return
+ if [[ -z $section || -z $option ]]; then
+ $xtrace
+ return
+ fi
# Add it
sed -i -e "/^\[$section\]/ a\\
@@ -123,7 +126,10 @@
local section=$2
local option=$3
- [[ -z $section || -z $option ]] && return
+ if [[ -z $section || -z $option ]]; then
+ $xtrace
+ return
+ fi
# Remove old values
sed -i -e "/^\[$section\]/,/^\[.*\]/ { /^$option[ \t]*=/ d; }" "$file"
@@ -141,7 +147,10 @@
local option=$3
local value=$4
- [[ -z $section || -z $option ]] && return
+ if [[ -z $section || -z $option ]]; then
+ $xtrace
+ return
+ fi
if ! grep -q "^\[$section\]" "$file" 2>/dev/null; then
# Add section at the end