Skip to content

Commit

Permalink
SpecialK: Overwrite existing nightly files on extract
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk committed Nov 21, 2023
1 parent ca5f569 commit a698f72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20231120-2"
PROGVERS="v14.0.20231121-1"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -9744,7 +9744,7 @@ function extSpek {
SRCARCH="$1"
SPEXT64="$SPEKDLDIR/$SPEKVERS/${SPEK}64.dll"

if [ -f "$SPEXT64" ]; then
if [ -f "$SPEXT64" ] && [ "$AUTOSPEK" -eq 0 ]; then
writelog "SKIP" "${FUNCNAME[0]} - Already have '$SPEXT64' - skipping extraction" "E"
else
if [ ! -f "$SRCARCH" ]; then
Expand All @@ -9754,7 +9754,7 @@ function extSpek {
SRCARCHEXT="${SRCARCH##*.}"
if [ "$SRCARCHEXT" = "zip" ]; then # zip archive from GitHub Actions (downloaded from nightly.link URL)
writelog "INFO" "${FUNCNAME[0]} - Extracting '$SRCARCH' into '$SPEKDLDIR/$SPEKVERS' using '$UNZIP'"
"$UNZIP" "$SRCARCH" -d "$SPEKDLDIR/$SPEKVERS" 2>/dev/null
"$UNZIP" -o "$SRCARCH" -d "$SPEKDLDIR/$SPEKVERS"
else # else assume 7zip
if [ -x "$(command -v "$SEVZA")" ]; then
writelog "INFO" "${FUNCNAME[0]} - Extracting '$SRCARCH' to '$SPEKDLDIR/$SPEKVERS'" "E"
Expand Down

0 comments on commit a698f72

Please sign in to comment.