Skip to content

Commit de233e8

Browse files
author
twojstaryzdomu
committed
Ensure LOG_DIR exists or default to /dev/shm
1 parent db69939 commit de233e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/supplementary/runcommand/runcommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function get_config() {
120120
[[ -z "$IMAGE_DELAY" ]] && IMAGE_DELAY=2
121121
iniGet "log_dir"
122122
LOG_DIR="$ini_value"
123-
[[ -z "$LOG_DIR" ]] && LOG_DIR="/dev/shm"
123+
[[ -d "$LOG_DIR" ]] && LOG_DIR="/dev/shm"
124124
LOG="$LOG_DIR/runcommand.log"
125125
fi
126126

0 commit comments

Comments
 (0)