From 7e6a5d1b1d76049415b730411df9bade20f25d72 Mon Sep 17 00:00:00 2001 From: lly-c232733 <104374843+lly-c232733@users.noreply.github.com> Date: Wed, 1 May 2024 14:42:37 -0400 Subject: [PATCH] PR: Add ability to override image detection (#442) --- src/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 70aec16..31687c2 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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"