summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2010-03-26 16:27:56 +0000
committerSean Bright <sean@malleable.com>2010-03-26 16:27:56 +0000
commita165ccc10ff8fe55d8a475be824d1343326c9399 (patch)
treeef9a196dd663f97cf44ae58f7dd84e052f98c855 /contrib
parentfff17a25ddc637a9253c758b7407aeda3f5244cb (diff)
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
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/live_ast4
1 files changed, 3 insertions, 1 deletions
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)