feat: better install script, eval paths

This commit is contained in:
v4n
2025-01-15 19:52:18 +02:00
parent 087dd4561c
commit 0806594289
3 changed files with 27 additions and 4 deletions
+1
View File
@@ -46,6 +46,7 @@ function find_game_directory() {
if [[ -z "$game_dir" ]]; then
echo "Could not find the Helldivers 2 data directory automatically." >&2
read -p "Please enter the path to the Helldivers 2 data directory: " game_dir
game_dir=$(eval echo "$game_dir")
if [[ ! -d "$game_dir" ]]; then
echo -e "${RED}Error${NC}: Provided path is not a valid directory." >&2
exit 1