mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
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:
@@ -168,7 +168,9 @@ gen_live_conf() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
command="$1"
|
command="$1"
|
||||||
|
if [ $# -gt 0 ]; then
|
||||||
shift
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
case "$command" in
|
case "$command" in
|
||||||
configure)
|
configure)
|
||||||
|
Reference in New Issue
Block a user