Browse Source

check if folder exist

Fix for #147
pull/193/head
Azlux 2 years ago
parent
commit
fd7cebbd1d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      log2ram

+ 3
- 0
log2ram View File

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


Loading…
Cancel
Save