[tools] refactor: reorganize, commonalities, moar tags, posix compat

all scripts are fully posix compliant

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-10-04 04:59:04 -04:00
parent dbc89d2f20
commit 240c2d14d4
18 changed files with 458 additions and 375 deletions

View file

@ -11,7 +11,7 @@ REPO="$1"
GIT_URL="https://$GIT_HOST/$REPO"
if [ "$USE_TAG" = "true" ]; then
if [ -z "$ARTIFACT" ]; then
if [ -z "$ARTIFACT" ] || [ "$ARTIFACT" = "null" ]; then
URL="${GIT_URL}/archive/refs/tags/$2.tar.gz"
else
URL="${GIT_URL}/releases/download/$2/${ARTIFACT}"