aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-26 16:27:56 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-26 16:27:56 +0000
commite04b3b7efdd44e85c351a27d9313c25f6746f0e7 (patch)
treeef9a196dd663f97cf44ae58f7dd84e052f98c855 /contrib
parent3a4706cb6c86b40124afb58a75e0daebc8d5a803 (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: http://svn.digium.com/svn/asterisk/trunk@254976 f38db490-d61c-443f-a65b-d21fe96a405b
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)