Browse Source

refactor: improve removal of appinfo.vdf file

The code has been refactored to improve the removal of the appinfo.vdf file. The find command now redirects error output to /dev/null for a cleaner execution.
pull/4260/head
Daniel Gibbs 2 years ago
parent
commit
dc7890cd8d
  1. 4
      lgsm/modules/core_steamcmd.sh

4
lgsm/modules/core_steamcmd.sh

@ -174,8 +174,8 @@ fn_update_steamcmd_remotebuild() {
fi
# Removes appinfo.vdf as a fix for not always getting up to date version info from SteamCMD.
if [ "$(find "${HOME}" -type f -name "appinfo.vdf" | wc -l)" -ne "0" ]; then
find "${HOME}" -type f -name "appinfo.vdf" -exec rm -f {} \;
if [ "$(find "${HOME}" -type f -name "appinfo.vdf" 2> /dev/null | wc -l)" -ne "0" ]; then
find "${HOME}" -type f -name "appinfo.vdf" -exec rm -f {} \; 2> /dev/null
fi
# password for branch not needed to check the buildid

Loading…
Cancel
Save