We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109e0eb commit 42a8d40Copy full SHA for 42a8d40
add_whitelists.sh
@@ -30,7 +30,7 @@ log_line() {
30
# Log to file (if enabled) and echo to stdout
31
local ts user msg
32
ts="$(date '+%F %T')"
33
- user="${SUDO_USER:-$USER:-root}"
+ user="${SUDO_USER:-${USER:-root}}"
34
msg="$*"
35
if [ "$LOG_ENABLED" -eq 1 ]; then
36
printf '%s [%s] %s\n' "$ts" "$user" "$msg" >> "$LOG_FILE" || true
0 commit comments