mirror of
https://github.com/aclist/dztui.git
synced 2025-03-14 16:33:00 +01:00
feat: check steam env vars
This commit is contained in:
parent
63307abd52
commit
08c8862106
1 changed files with 3 additions and 3 deletions
|
@ -1270,7 +1270,7 @@ symlinks(){
|
|||
link="@$encoded_id"
|
||||
mod="${arr[$i]}"
|
||||
logger INFO "Creating link '$game_dir/$link' for '$workshop_dir/$mod'"
|
||||
[[ $STEAM_LAUNCH -eq 1 ]] && echo "# Creating mod link $((i+1))/${#arr[@]}"
|
||||
[[ -n $STEAMSCRIPT ]] && echo "# Creating mod link $((i+1))/${#arr[@]}"
|
||||
ln -s "$workshop_dir/$mod" "$game_dir/$link"
|
||||
done
|
||||
}
|
||||
|
@ -1285,7 +1285,7 @@ symlinks(){
|
|||
|
||||
if [[ ${#links[@]} -eq 0 ]]; then
|
||||
logger INFO "No symlinks present in '$game_dir', creating them"
|
||||
if [[ $STEAM_LAUNCH -eq 1 ]]; then
|
||||
if [[ -n $STEAMSCRIPT ]]; then
|
||||
_create_links "${mods[@]}" > >(_pulse)
|
||||
else
|
||||
_create_links "${mods[@]}"
|
||||
|
@ -1303,7 +1303,7 @@ symlinks(){
|
|||
|
||||
# update missing targets
|
||||
logger INFO "Found ${#hits[@]} unlinked mods"
|
||||
if [[ $STEAM_LAUNCH -eq 1 ]]; then
|
||||
if [[ -n $STEAMSCRIPT ]]; then
|
||||
_create_links "${hits[@]}" > >(_pulse)
|
||||
else
|
||||
_create_links "${hits[@]}"
|
||||
|
|
Loading…
Reference in a new issue