feat: Check path to custom .xml
This commit is contained in:
parent
9bbe8f22c8
commit
4c94dfcb0a
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue