1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-07-22 15:38:49 +02:00

fix: pack launch parameters into array #136

This commit is contained in:
aclist 2024-07-16 22:23:05 +09:00
parent 3acab049d4
commit 7c4cbecb47
3 changed files with 14 additions and 3 deletions
helpers

View file

@ -1307,7 +1307,14 @@ final_handshake(){
return 1
fi
logger INFO "Kicking off Steam launch"
$steam_cmd -applaunch $aid -connect=$saved_address -nolauncher -nosplash -skipintro \"-name=$name\" \"-mod=$saved_mods\" &
local params=()
params+=("-connect=$saved_address")
params+=("-nolauncher")
params+=("-nosplash")
params+=("-skipintro")
params+=("\"-name=$name\"")
params+=("\"-mod=$saved_mods\"")
$steam_cmd -applaunch $aid "${params[@]}" &
until [[ $(is_dayz_running) -eq 1 ]]; do
sleep 0.1s
done