mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-14 13:30:34 +00:00
Syntax fixes
This commit is contained in:
parent
4772265c99
commit
c45b974f43
@ -125,15 +125,15 @@ getdirs() {
|
||||
# Check if the config files already exist
|
||||
if [ -f "$conf_dir/$conf_subdir/$wine_conf" ]; then
|
||||
found_wine_conf=1
|
||||
wine_prefix="$(cat $conf_dir/$conf_subdir/$wine_conf")"
|
||||
wine_prefix="$(cat "$conf_dir/$conf_subdir/$wine_conf")"
|
||||
fi
|
||||
if [ -f "$conf_dir/$conf_subdir/$game_conf" ]; then
|
||||
found_game_conf=1
|
||||
game_path="$(cat $conf_dir/$conf_subdir/$game_conf")"
|
||||
game_path="$(cat "$conf_dir/$conf_subdir/$game_conf")"
|
||||
fi
|
||||
if [ -f "$conf_dir/$conf_subdir/$backup_conf" ]; then
|
||||
found_backup_conf=1
|
||||
backup_path="$(cat $conf_dir/$conf_subdir/$backup_conf")"
|
||||
backup_path="$(cat "$conf_dir/$conf_subdir/$backup_conf")"
|
||||
fi
|
||||
|
||||
if [ -z "$found_wine_config" ] || [ -z "$found_game_conf" ] || [ -z "$found_backup_conf" ]; then
|
||||
@ -155,7 +155,7 @@ getdirs() {
|
||||
message 2 "An unexpected error has occurred."
|
||||
fi
|
||||
|
||||
if [ "$(basename $game_path)" != "LIVE" ]; then
|
||||
if [ "$(basename "$game_path")" != "LIVE" ]; then
|
||||
message 2 "You must select your LIVE directory."
|
||||
else
|
||||
break
|
||||
@ -192,7 +192,7 @@ getdirs() {
|
||||
while read -rp ": " game_path; do
|
||||
if [ ! -d "$game_path" ]; then
|
||||
echo -e "That directory is invalid or does not exist. Please try again.\n"
|
||||
elif [ "$(basename $game_path)" != "LIVE" ]; then
|
||||
elif [ "$(basename "$game_path")" != "LIVE" ]; then
|
||||
echo -e "You must select your LIVE directory."
|
||||
else
|
||||
break
|
||||
@ -213,6 +213,7 @@ getdirs() {
|
||||
done
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Save the paths for later use
|
||||
echo "$wine_prefix" > "$conf_dir/$conf_subdir/$wine_conf"
|
||||
@ -237,7 +238,7 @@ sanitize() {
|
||||
|
||||
# Check for exported keybind files
|
||||
exported=0 # Default to none found
|
||||
if [ ! -d "$mappings_dir" ] || [ -z "$(ls -A $mappings_dir)" ]; then
|
||||
if [ ! -d "$mappings_dir" ] || [ -z "$(ls -A "$mappings_dir")" ]; then
|
||||
message 1 "Warning: No exported keybindings found. Keybinds will not be backed up!"
|
||||
exported=0
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user