Skip to content

Commit 96fbb26

Browse files
authored
fix: Warn on invalid path (#1168)
1 parent db45817 commit 96fbb26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ detectCustom() {
206206
CUSTOM=""
207207

208208
if [ -d "/$fname" ]; then
209-
error "The file /$fname has an invalid path!" && return 1
209+
error "The file /$fname does not exist, please check that you mapped it to a valid path!" && return 1
210210
fi
211211

212212
file=$(find / -maxdepth 1 -type f -iname "$fname" | head -n 1)
@@ -495,7 +495,7 @@ setXML() {
495495
local file="/custom.xml"
496496

497497
if [ -d "$file" ]; then
498-
warn "The file $file has an invalid path!"
498+
warn "The file $file does not exist, please check that you mapped it to a valid path!"
499499
fi
500500

501501
[ ! -f "$file" ] || [ ! -s "$file" ] && file="$STORAGE/custom.xml"

0 commit comments

Comments
 (0)