From 4c94dfcb0a018161355d4c60f04ad04434fd2b89 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 28 Feb 2025 03:39:43 +0100 Subject: [PATCH] feat: Check path to custom .xml --- src/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/install.sh b/src/install.sh index a22c2d8..daa86c0 100644 --- a/src/install.sh +++ b/src/install.sh @@ -491,6 +491,10 @@ setXML() { local file="/custom.xml" + if [ -d "$file" ]; then + warn "The file $file has an invalid path!" + fi + [ ! -f "$file" ] || [ ! -s "$file" ] && file="$STORAGE/custom.xml" [ ! -f "$file" ] || [ ! -s "$file" ] && file="/run/assets/custom.xml" [ ! -f "$file" ] || [ ! -s "$file" ] && file="$1"