]> git.ipfire.org Git - network.git/commitdiff
Make the print function print strings that start with a dash.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Jul 2012 09:03:11 +0000 (09:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Jul 2012 09:03:11 +0000 (09:03 +0000)
functions.util

index d433aa402e90681e9f2ec3bbc3172af84dabe489..3c5bca5e667477c9ec3e7d7505eb011805146790 100644 (file)
@@ -23,7 +23,7 @@
 function print() {
        local fmt=${1}; shift
 
-       printf "${fmt}\n" "$@"
+       printf -- "${fmt}\n" "$@"
 }
 
 # Print a pretty error message