]> git.ipfire.org Git - network.git/commitdiff
config: Fix reading in empty values.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Sep 2012 15:00:49 +0000 (15:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Sep 2012 15:00:49 +0000 (15:00 +0000)
functions.config

index e229805645a9cf6ee85c4c206d3ac2c22b42845d..ab7d93082fb40ba3394e117781bfb964fc38130e 100644 (file)
@@ -112,7 +112,7 @@ function config_strip() {
        fi
 
        local last=$(( ${#var} - 1 ))
-       if [ ${last} -gt 0 ] && [ "${var:${last}:1}" = "\"" ]; then
+       if [ ${last} -ge 0 ] && [ "${var:${last}:1}" = "\"" ]; then
                var=${var:0:${last}}
        fi