Update NonSteamLaunchers.sh

This commit is contained in:
moraroy 2023-05-09 00:03:05 -07:00 committed by GitHub
parent 9b0f0681f5
commit 16f0679ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1660,7 +1660,7 @@ python setup.py install --prefix=~/Downloads/NonSteamLaunchersInstallation
# Find all shortcuts.vdf files
shortcuts_vdf_paths=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex '.*/[0-9]{9,10}/config' -not -path "*/0/*" -not -path "*/anonymous/*" -exec find {} -name shortcuts.vdf \;)
shortcuts_vdf_paths=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex ".*/[0-9]{9,10}/config" -not -path "*/0/*" -not -path "*/anonymous/*" -exec find {} -name shortcuts.vdf \;)
# Set the current date
current_date=$(date +%s)
@ -1694,7 +1694,7 @@ if [[ -n "$shortcuts_vdf_path" ]]; then
cp "$shortcuts_vdf_path" "$shortcuts_vdf_path.bak"
else
# Find the config directory
config_dir=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex '.*/[0-9]{9,10}/config' -not -path "*/0/*" -not -path "*/anonymous/*")
config_dir=$(find ~/.steam/root/userdata -type d -regextype posix-extended -regex ".*/[0-9]{9,10}/config" -not -path "*/0/*" -not -path "*/anonymous/*")
# Check if config_dir is not empty
if [[ -n "$config_dir" ]]; then