aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/lib
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-17 14:36:57 -0500
committerCraig Jennings <c@cjennings.net>2026-05-17 14:36:57 -0500
commit85eb6e4d42299cb6e45155b536f08674c18098ee (patch)
tree9ff1a8125fa7348e70245e45daabb3027d35693a /scripts/testing/lib
parent494769e3698fb02f5bdd1ec8f09fbdec4218e63e (diff)
downloadarchsetup-85eb6e4d42299cb6e45155b536f08674c18098ee.tar.gz
archsetup-85eb6e4d42299cb6e45155b536f08674c18098ee.zip
refactor(scripts/games): array + loop, flathub remote check, failure summary
Three things were wrong with the old script: - One line had a duplicate `flathub` argument (`flatpak install ... flathub flathub org.gnome.Crosswords`). Flatpak tolerated it; still a typo. - Nothing added the flathub remote, so a fresh machine without it would fail on every line. - 24 nearly identical `flatpak install` lines with no central handling if one app failed. I moved the app IDs into a single `APPS=()` array (sorted) and looped. The script now runs `flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo` up front, collects any failed apps into a `failed` array, and prints a summary plus a non-zero exit at the end if anything didn't install. I used `set -uo pipefail` rather than `-euo` on purpose so a single failed install doesn't abort the rest of the run.
Diffstat (limited to 'scripts/testing/lib')
0 files changed, 0 insertions, 0 deletions