Update install.sh
This commit is contained in:
parent
ba37a4c352
commit
3c6f7f4621
1 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ detectCustom() {
|
||||||
CUSTOM=""
|
CUSTOM=""
|
||||||
|
|
||||||
if [ -d "/$fname" ]; then
|
if [ -d "/$fname" ]; then
|
||||||
error "The file /$fname has an invalid path!" && return 1
|
error "The file /$fname does not exist, please make sure that you mapped it to a valid path!" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
file=$(find / -maxdepth 1 -type f -iname "$fname" | head -n 1)
|
file=$(find / -maxdepth 1 -type f -iname "$fname" | head -n 1)
|
||||||
|
@ -495,7 +495,7 @@ setXML() {
|
||||||
local file="/custom.xml"
|
local file="/custom.xml"
|
||||||
|
|
||||||
if [ -d "$file" ]; then
|
if [ -d "$file" ]; then
|
||||||
warn "The file $file has an invalid path!"
|
warn "The file $file does not exist, please make sure that you mapped it to a valid path!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -f "$file" ] || [ ! -s "$file" ] && file="$STORAGE/custom.xml"
|
[ ! -f "$file" ] || [ ! -s "$file" ] && file="$STORAGE/custom.xml"
|
||||||
|
|
Loading…
Reference in a new issue