diff --git a/games/factorio_manager.sh b/games/factorio_manager.sh index df505686f2ed1f54712b191eeb17a7425e581d5b..4a6d12e4fbe9a779bb0e0a7e0892eb44762697cd 100755 --- a/games/factorio_manager.sh +++ b/games/factorio_manager.sh @@ -1587,7 +1587,7 @@ elif [[ $command == restore ]]; then # Set-up a list of files and directories that will get removed. shopt -s nullglob - entries_to_remove=($instance_directory/*) + entries_to_remove=("$instance_directory"/*) shopt -u nullglob # Present user with extensive warning on consequences. @@ -1810,7 +1810,7 @@ elif [[ $command == info ]]; then # Mod information. shopt -s nullglob - mod_files=($instance_directory/mods/*.zip) + mod_files=("$instance_directory/mods"/*.zip) mod_list="$instance_directory/mods/mod-list.json" shopt -u nullglob @@ -1939,7 +1939,7 @@ elif [[ $command == remove ]]; then # Set-up a list of files and directories that will get removed. shopt -s nullglob dotglob - entries_to_remove=($instance_directory/*) + entries_to_remove=("$instance_directory"/*) shopt -u nullglob dotglob # Present user with extensive warning on consequences. @@ -2068,7 +2068,7 @@ elif [[ $command == copy ]]; then done # Set-up a list of files and directories to copy. - entries_to_copy=($source_instance_directory/*) + entries_to_copy=("$source_instance_directory"/*) if [[ $copy_backups == "y" && -e "$source_instance_directory/.bak" ]]; then entries_to_copy+=("$source_instance_directory/.bak")