aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xsrc/bbfw.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bbfw.in b/src/bbfw.in
index 5bc8d7f..8a80474 100755
--- a/src/bbfw.in
+++ b/src/bbfw.in
@@ -119,6 +119,7 @@ clean_file()
119config_option() 119config_option()
120{ 120{
121 if test ! -f "${FW_CONF}";then 121 if test ! -f "${FW_CONF}";then
122 echo "${2}" |tr "${3:-0}" "${4:-0}"
122 return 0 123 return 0
123 fi 124 fi
124 TMP_STR="$( 125 TMP_STR="$(
@@ -129,13 +130,13 @@ config_option()
129 |sed \ 130 |sed \
130 -e "s/^[[:space:]]\{0,\}${1}[[:space:]]\{0,\}=[[:space:]]\{0,\}//g" \ 131 -e "s/^[[:space:]]\{0,\}${1}[[:space:]]\{0,\}=[[:space:]]\{0,\}//g" \
131 -e "s/[[:space:]]\{0,\}$//g" \ 132 -e "s/[[:space:]]\{0,\}$//g" \
132 |tr "${3:-0}" "${4:-0}" 133 -e "s/^[[:space:]]\{0,\}$//g"
133 )" 134 )"
134 if test -z "${TMP_STR}";then 135 if test -z "${TMP_STR}";then
135 echo "${2}" 136 echo "${2}"
136 else 137 else
137 echo "${TMP_STR}" 138 echo "${TMP_STR}"
138 fi 139 fi |tr "${3:-0}" "${4:-0}"
139} 140}
140 141
141 142