PR: Add ability to override image detection (#442)

This commit is contained in:
lly-c232733 2024-05-01 14:42:37 -04:00 committed by GitHub
parent cafb187d26
commit 7e6a5d1b1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -533,7 +533,11 @@ detectImage() {
local dir="$1"
if [ -n "$CUSTOM" ]; then
DETECTED=""
if [ -f "/run/assets/custom.xml" ]; then
DETECTED="custom"
else
DETECTED=""
fi
else
if [ -z "$DETECTED" ] && [[ "$EXTERNAL" != [Yy1]* ]]; then
DETECTED="$VERSION"