mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:14:21 +00:00
Rename variable for clarity
This commit is contained in:
parent
e83768b9ed
commit
9bc91d2ca1
@ -165,9 +165,9 @@ fi
|
|||||||
# Use Lutris install json installed by a packaged version of this script if available
|
# Use Lutris install json installed by a packaged version of this script if available
|
||||||
# Otherwise, default to the json in the lib directory
|
# Otherwise, default to the json in the lib directory
|
||||||
if [ -f "$(dirname "$helper_dir")/share/lug-helper/lutris-starcitizen.json" ]; then
|
if [ -f "$(dirname "$helper_dir")/share/lug-helper/lutris-starcitizen.json" ]; then
|
||||||
install_script="$(dirname "$helper_dir")/share/lug-helper/lutris-starcitizen.json"
|
lutris_install_script="$(dirname "$helper_dir")/share/lug-helper/lutris-starcitizen.json"
|
||||||
else
|
else
|
||||||
install_script="$helper_dir/lib/lutris-starcitizen.json"
|
lutris_install_script="$helper_dir/lib/lutris-starcitizen.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use game launch script installed by a packaged version of this script if available
|
# Use game launch script installed by a packaged version of this script if available
|
||||||
@ -2370,8 +2370,8 @@ install_game_lutris() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
# Check if the install script exists
|
# Check if the install script exists
|
||||||
if [ ! -f "$install_script" ]; then
|
if [ ! -f "$lutris_install_script" ]; then
|
||||||
message warning "Lutris install script not found!\n\n$install_script\n\nIt is included in our official releases here:\n$releases_url"
|
message warning "Lutris install script not found!\n\n$lutris_install_script\n\nIt is included in our official releases here:\n$releases_url"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2409,9 +2409,9 @@ install_game_lutris() {
|
|||||||
|
|
||||||
# Run the appropriate installer
|
# Run the appropriate installer
|
||||||
if [ "$install_version" = "native" ]; then
|
if [ "$install_version" = "native" ]; then
|
||||||
lutris --install "$install_script" &
|
lutris --install "$lutris_install_script" &
|
||||||
elif [ "$install_version" = "flatpak" ]; then
|
elif [ "$install_version" = "flatpak" ]; then
|
||||||
flatpak run --file-forwarding net.lutris.Lutris --install @@ "$install_script" @@ &
|
flatpak run --file-forwarding net.lutris.Lutris --install @@ "$lutris_install_script" @@ &
|
||||||
else
|
else
|
||||||
# We shouldn't get here
|
# We shouldn't get here
|
||||||
debug_print exit "Script error: Unknown condition for install_version in install_game() function. Aborting."
|
debug_print exit "Script error: Unknown condition for install_version in install_game() function. Aborting."
|
||||||
|
Loading…
Reference in New Issue
Block a user