From a165ccc10ff8fe55d8a475be824d1343326c9399 Mon Sep 17 00:00:00 2001 From: Sean Bright <sean@malleable.com> Date: Fri, 26 Mar 2010 16:27:56 +0000 Subject: [PATCH] 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(-) 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) -- GitLab