Add mktemp suffix and fallback

This commit is contained in:
the-sane 2021-01-15 19:33:10 -05:00 committed by GitHub
parent ff30d8d557
commit 35fd12b672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ fi
# .config subdirectory
conf_subdir="starcitizen-lug"
tmp_dir="$(mktemp -d)"
tmp_dir="$(mktemp -d --suffix=".lughelper" || echo "/tmp")"
# The game's user subdirectory name
user_subdir_name="USER"