From fd7cebbd1d2247a2a5626df9d4d103561dd495a9 Mon Sep 17 00:00:00 2001 From: Azlux Date: Fri, 4 Mar 2022 13:38:21 +0100 Subject: [PATCH] check if folder exist Fix for #147 --- log2ram | 3 +++ 1 file changed, 3 insertions(+) diff --git a/log2ram b/log2ram index 026188b..0a5ae39 100755 --- a/log2ram +++ b/log2ram @@ -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"