Work around a bug in dash on Ubuntu by checking the number of arguments before shift...
authorSean Bright <sean@malleable.com>
Fri, 26 Mar 2010 16:27:56 +0000 (16:27 +0000)
committerSean Bright <sean@malleable.com>
Fri, 26 Mar 2010 16:27:56 +0000 (16:27 +0000)
Reported and tested by pabelanger.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@254976 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/scripts/live_ast

index 1beaef9..331f799 100755 (executable)
@@ -168,7 +168,9 @@ gen_live_conf() {
 }
 
 command="$1"
-shift
+if [ $# -gt 0 ]; then
+  shift
+fi
 
 case "$command" in
 configure)