uninstall.sh mirrors install.sh: it names the store and lets the engine do the work. It passes STORE_ID rather than a config URL — taking a store away does not need a download, and the id is what names its home. Both wrappers are POSIX sh now, and neither pipes curl into a shell any more: a failed download would feed an empty script to sh and look like success, so the installer is fetched to a file and run from there. The repository moved from the tools org to stores. The old raw URLs still redirect, so a box installed yesterday keeps updating. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
18 lines
638 B
Bash
Executable File
18 lines
638 B
Bash
Executable File
#!/bin/sh
|
|
# Remove the Teletype Games store from this Batocera box.
|
|
#
|
|
# curl -fsSL https://git.teletypegames.org/stores/ttg-batocera-store/raw/branch/master/uninstall.sh | sh
|
|
#
|
|
# All the work is done by the engine's uninstaller; this only says which store.
|
|
# DRY_RUN=1 to see what would go, KEEP_HOME=1 to keep the state and the log.
|
|
set -eu
|
|
FORGE="${FORGE:-https://git.teletypegames.org/stores}"
|
|
ENGINE_RAW_BASE="${ENGINE_RAW_BASE:-$FORGE/warp-engine-batocera-store/raw/branch/master}"
|
|
STORE_ID="${STORE_ID:-ttg}"
|
|
export STORE_ID
|
|
|
|
TMP="$(mktemp)"
|
|
trap 'rm -f "$TMP"' EXIT
|
|
curl -fsSL "$ENGINE_RAW_BASE/uninstall.sh" -o "$TMP"
|
|
sh "$TMP"
|