Only shift if there are arguments left in the list. Previous fix invalidated by Axel and hint to the proper solution given by mksh developper.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38084 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
22727b149d
commit
8ac6b88687
@ -10,6 +10,7 @@ launch() {
|
||||
toLaunch="$1"
|
||||
shift
|
||||
toWaitFor="$1"
|
||||
(( $# )) && shift
|
||||
if [ -f "/boot/$toLaunch" ]
|
||||
then
|
||||
"/boot/$toLaunch" $* &
|
||||
|
Loading…
x
Reference in New Issue
Block a user