style(debian): add -e flag to echo commands in log functions
Enable interpretation of backslash escapes in log messages across all debian scripts for consistent formatting and proper escape sequence handling
This commit is contained in:
Vendored
+1
-1
@@ -24,7 +24,7 @@ log() {
|
||||
local timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
||||
|
||||
# Escreve no ficheiro de log
|
||||
echo "$timestamp: $message" | tee -a "$LOG_FILE"
|
||||
echo -e "$timestamp: $message" | tee -a "$LOG_FILE"
|
||||
|
||||
# Envia para o syslog (opcional)
|
||||
logger -t "set_static_ip" "$message"
|
||||
|
||||
Reference in New Issue
Block a user