]> git.ipfire.org Git - people/stevee/network.git/commitdiff
cli: Fix cli_get_val function to split at the first occurence of '='.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Aug 2012 09:31:26 +0000 (09:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Aug 2012 09:31:26 +0000 (09:31 +0000)
functions.cli

index f1ede003acd4deb4edd4970367fecab7b06b3c0c..b6ac6a160bef0150ba71240bcb539e3a7f738afa 100644 (file)
@@ -307,7 +307,7 @@ function cli_get_key() {
 }
 
 function cli_get_val() {
-       echo "${@##*=}"
+       echo "${@#*=}"
 }
 
 function cli_usage() {