Fix duplicate steam_dir vars

First one declared is steam_dir, second is steam_dir_root
This commit is contained in:
pythoninthegrass 2023-08-12 15:05:47 -05:00
parent 9ed149e86b
commit d69a64462c

View File

@ -2739,15 +2739,15 @@ while steam_pid > /dev/null; do sleep 5; done
# Pre check for updating the config file
# Set the default Steam directory
steam_dir="${logged_in_home}/.steam/root"
steam_dir_root="${logged_in_home}/.steam/root"
# Set the path to the config.vdf file
config_vdf_path="${steam_dir}/config/config.vdf"
config_vdf_path="${steam_dir_root}/config/config.vdf"
# Check if the config.vdf file exists
if [ -f "$config_vdf_path" ]; then
# Create a backup of the config.vdf file
backup_path="${steam_dir}/config/config.vdf.bak"
backup_path="${steam_dir_root}/config/config.vdf.bak"
cp "$config_vdf_path" "$backup_path"
# Set the name of the compatibility tool to use