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
This commit is contained in:
Sean Bright 2010-03-26 16:27:56 +00:00
parent fff17a25dd
commit a165ccc10f
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ gen_live_conf() {
}
command="$1"
shift
if [ $# -gt 0 ]; then
shift
fi
case "$command" in
configure)