mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-26 19:04:19 +00:00
Back up existing launch script
This commit is contained in:
parent
17f3381d2c
commit
82bc723df3
@ -2844,6 +2844,10 @@ install_game_wine() {
|
||||
|
||||
# Copy game launch script to the wine prefix root directory
|
||||
debug_print continue "Copying game launch script to ${install_dir}..."
|
||||
if [ -f "$install_dir/$wine_launch_script_name" ]; then
|
||||
# Back it up if it already exists
|
||||
cp "$install_dir/$wine_launch_script_name" "$install_dir/$(basename "$wine_launch_script_name" .sh).bak"
|
||||
fi
|
||||
cp "$wine_launch_script" "$install_dir"
|
||||
installed_launch_script="$install_dir/$wine_launch_script_name"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user