check if folder exist

Fix for #147
This commit is contained in:
Azlux 2022-03-04 13:38:21 +01:00
parent fbd8868ae1
commit fd7cebbd1d
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,9 @@ case "$1" in
start)
IFS=';'
for i in $PATH_DISK; do
# Skip the path if the folder doesn't exist
[ ! -d "$i" ] && continue
PATH_FIRST_PART="${i%/*}"
PATH_LAST_PART="${i##/*/}"
RAM_LOG="$i"