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:
parent
fff17a25dd
commit
a165ccc10f
|
@ -168,7 +168,9 @@ gen_live_conf() {
|
|||
}
|
||||
|
||||
command="$1"
|
||||
if [ $# -gt 0 ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
case "$command" in
|
||||
configure)
|
||||
|
|
Loading…
Reference in New Issue