Explorar el Código

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

lly-c232733 hace 2 años
padre
commit
7e6a5d1b1d
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/install.sh

+ 5 - 1
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"