🗃️ Committing everything that changed 🗃️

rootfs/root/docker/setup/05-custom.sh
This commit is contained in:
casjay 2025-02-04 21:54:43 -05:00
parent c3664221ad
commit 66a1b3c370
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -24,8 +24,8 @@ set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set env variables # Set env variables
exitCode=0 exitCode=0
ARIANG_VERSION="${ARIANG_VERSION:-$(curl -q -LSsf https://api.github.com/repos/mayswind/AriaNg/releases | jq -r '.[].name' | sort -rV | head -n1 | sed 's|AriaNg ||g' | grep '^' || echo '1.3.9')}" ARIANG_VERSION="${ARIANG_VERSION:-$(curl -q -LSsf "https://api.github.com/repos/mayswind/AriaNg/releases" | jq -r '.[].tag_name' | sort -rV | head -n1 | grep '^' || echo '1.3.8')}"
ARIANG_ARCHIVE_FILE="https://github.com/mayswind/AriaNg/releases/download/$ARIANG_VERSION/AriaNg-$ARIANG_VERSION.zip" ARIANG_ARCHIVE_FILE="https://github.com/mayswind/AriaNg/releases/download/${ARIANG_VERSION}/AriaNg-${ARIANG_VERSION}.zip"
ARIANG_TEMP_FILE="/tmp/AriaNg.zip" ARIANG_TEMP_FILE="/tmp/AriaNg.zip"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Predefined actions # Predefined actions
@ -34,7 +34,7 @@ if curl -q -LSsf "$ARIANG_ARCHIVE_FILE" -o "$ARIANG_TEMP_FILE"; then
unzip "$ARIANG_TEMP_FILE" -d "/usr/local/share/ariang" unzip "$ARIANG_TEMP_FILE" -d "/usr/local/share/ariang"
exitCode=$? exitCode=$?
else else
exitCode=1 exitCode=9
fi fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script # Main script