mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-09-07 15:17:38 +00:00
Default path to avoid potential unset variable errors on bazzite
This commit is contained in:
@@ -1260,6 +1260,7 @@ runner_manage_wine() {
|
|||||||
# Set the value of the above variable that will be restored after a runner is deleted
|
# Set the value of the above variable that will be restored after a runner is deleted
|
||||||
# In this case, we want to revert to calling system wine
|
# In this case, we want to revert to calling system wine
|
||||||
post_delete_restore_value="$(command -v wine | xargs dirname)"
|
post_delete_restore_value="$(command -v wine | xargs dirname)"
|
||||||
|
post_delete_restore_value="${post_delete_restore_value:-/usr/bin}" # default to /usr/bin if empty
|
||||||
|
|
||||||
# Call the download_manage function with the above configuration
|
# Call the download_manage function with the above configuration
|
||||||
# The argument passed to the function is used for special handling
|
# The argument passed to the function is used for special handling
|
||||||
@@ -2064,6 +2065,7 @@ update_launcher() {
|
|||||||
# If wine_path is empty, it may be an older version of the launch script. Default to system wine
|
# If wine_path is empty, it may be an older version of the launch script. Default to system wine
|
||||||
if [ -z "$bak_winepath" ]; then
|
if [ -z "$bak_winepath" ]; then
|
||||||
bak_winepath="$(command -v wine | xargs dirname)"
|
bak_winepath="$(command -v wine | xargs dirname)"
|
||||||
|
bak_winepath="${bak_winepath:-/usr/bin}" # default to /usr/bin if still empty
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy in the new launch script
|
# Copy in the new launch script
|
||||||
|
Reference in New Issue
Block a user