From: Sean Bright Date: Fri, 26 Mar 2010 16:27:56 +0000 (+0000) Subject: Work around a bug in dash on Ubuntu by checking the number of arguments before shift... X-Git-Tag: 11.0.0-beta1~3220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a165ccc10ff8fe55d8a475be824d1343326c9399;p=thirdparty%2Fasterisk.git Work around a bug in dash on Ubuntu by checking the number of arguments before shift'ing. Reported and tested by pabelanger. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@254976 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/scripts/live_ast b/contrib/scripts/live_ast index 1beaef9f9e..331f7992b1 100755 --- a/contrib/scripts/live_ast +++ b/contrib/scripts/live_ast @@ -168,7 +168,9 @@ gen_live_conf() { } command="$1" -shift +if [ $# -gt 0 ]; then + shift +fi case "$command" in configure)