Skip to content

Commit

Permalink
feat: Check path to custom .xml
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Feb 28, 2025
1 parent bf832cd commit de13788
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit de13788

Please sign in to comment.