From a165ccc10ff8fe55d8a475be824d1343326c9399 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Fri, 26 Mar 2010 16:27:56 +0000 Subject: 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 --- contrib/scripts/live_ast | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'contrib/scripts/live_ast') diff --git a/contrib/scripts/live_ast b/contrib/scripts/live_ast index 1beaef9f9..331f7992b 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) -- cgit v1.2.3