From de13788c2f9a34f188b120187925b9e3d22a5266 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 28 Feb 2025 03:38:46 +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 0b2665b..f93a6c4 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"