Skip to content

Commit

Permalink
Fix the check and checkSteamDeckSTLUpdated
Browse files Browse the repository at this point in the history
Co-authored-by:  Eamonn Rea <[email protected]>
  • Loading branch information
AtomHare and sonic2kk committed Jun 23, 2024
1 parent 0648959 commit 395015d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -26294,7 +26294,8 @@ function checkSteamDeckDependencies {
# 2. The dependency can actually be ran, confirming it is a valid file
# 3. SteamTinkerLaunch has not updated or autoupdater isn't enabled, so there would be no change in dependency version and thus no need to update
# If any of these are false, we need to check our dependencies (if a file is missing we would need to update, or if it cannot be used we need to update, and also if STL updated we may need a newer version, so update).
if [[ -f "$(command -v "$DEPCMD")" && "$CHECKCMD" = "OK" && ( "$( checkSteamDeckSTLUpdated )" -eq 0 || "$STEAMDECK_AUTOUP" -eq 0 ) ]]; then
if [[ -f "$(command -v "$DEPCMD")" && "$CHECKCMD" = "OK" ]] \
&& ! ( [ "$STEAMDECK_AUTOUP" -eq 1 ] && checkSteamDeckSTLUpdated ); then
writelog "INFO" "${FUNCNAME[0]} - Using '$DEPCMD' binary found in path: '$(command -v "$DEPCMD")'"
echo "Dependency '$DEPCMD' already installed, nothing to do."
else
Expand Down Expand Up @@ -26740,10 +26741,10 @@ function checkSteamDeckSTLUpdated {
CHECKLASTVERSSTEAMDECK="$( cat "$STLSTEAMDECKLASTVERS" )"
if [ "$CHECKLASTVERSSTEAMDECK" = "$PROGVERS" ]; then
writelog "INFO" "${FUNCNAME[0]} - Last known SteamTinkerLaunch install version ('$CHECKLASTVERSSTEAMDECK') and the current version ('$PROGVERS') match -- There has been no update since last launch"
return 0
return 1
else
writelog "INFO" "${FUNCNAME[0]} - Last known SteamTinkerLaunch install version ('$CHECKLASTVERSSTEAMDECK') and the current version ('$PROGVERS') do NOT match -- It seems there has been an update!"
return 1
return 0
fi
}

Expand Down

0 comments on commit 395015d

Please sign in to comment.