mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
feat: Check path to custom .xml
This commit is contained in:
parent
bf832cdab2
commit
de13788c2f
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…
Add table
Add a link
Reference in a new issue