Skip to content

Commit 42a8d40

Browse files
add_whitelists.sh
1 parent 109e0eb commit 42a8d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add_whitelists.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ log_line() {
3030
# Log to file (if enabled) and echo to stdout
3131
local ts user msg
3232
ts="$(date '+%F %T')"
33-
user="${SUDO_USER:-$USER:-root}"
33+
user="${SUDO_USER:-${USER:-root}}"
3434
msg="$*"
3535
if [ "$LOG_ENABLED" -eq 1 ]; then
3636
printf '%s [%s] %s\n' "$ts" "$user" "$msg" >> "$LOG_FILE" || true

0 commit comments

Comments
 (0)