fix: update check survives a non-version release tag; quiet-step log in log/

This commit is contained in:
theupriser committed 2026-10-03 13:18:15 +02:00
1 parent 18e06797b3
commit 095e7bca5c
5 files changed
+9 -7

No files matched your search

+2 -2
View File
@@ -43,9 +43,9 @@ best_effort() {
# best_effort <command>...: for a step whose failure is fine (stopping a
# unit that isn't running, removing what isn't installed). Same exit status
# and output as the command, but its errors go to the log
# (~/.local/state/steamify/steamify.log) instead of vanishing, so a problem
# (~/.local/state/steamify/log/steamify.log) instead of vanishing, so a problem
# can still be found afterwards.
local log="${STEAMIFY_LOG:-${STATE_DIR:-$HOME/.local/state/steamify}/steamify.log}" e rc
local log="${STEAMIFY_LOG:-${STATE_DIR:-$HOME/.local/state/steamify}/log/steamify.log}" e rc
e="$(mktemp)" || { "$@" 2>/dev/null; return; }
"$@" 2>"$e"; rc=$?
if [[ -s "$e" ]]; then