Skip to content

Commit f269dd5

Browse files
author
twojstaryzdomu
committed
Ensure LOGDIR exists or default to /dev/shm
1 parent 4202429 commit f269dd5

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 "$LOGDIR" ]] && LOGDIR="/dev/shm"
123+
[[ -d "$LOGDIR" ]] || LOGDIR="/dev/shm"
124124
LOG="$LOG_DIR/runcommand.log"
125125
fi
126126

0 commit comments

Comments
 (0)