Skip to content

Commit 1806b14

Browse files
LOG_DIR may not exist as a dir
1 parent a07abd8 commit 1806b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/lib/log/output.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ readonly -f os::log::debug
8686
# Arguments:
8787
# - all: message to write
8888
function os::log::internal::to_logfile() {
89-
if [[ -n "${LOG_DIR:-}" ]]; then
89+
if [[ -n "${LOG_DIR:-}" && -d "${LOG_DIR-}" ]]; then
9090
echo "$*" >>"${LOG_DIR}/scripts.log"
9191
fi
9292
}

0 commit comments

Comments
 (0)