mirror of
https://github.com/unraid/webgui.git
synced 2026-05-06 04:11:17 -05:00
scripts dutchification - batch 1
This commit is contained in:
+3
-1
@@ -18,7 +18,9 @@ run(){
|
||||
log(){
|
||||
if [[ ! -t 0 ]]; then
|
||||
# log message to syslog
|
||||
logger -t $BASENAME "${1:-$(</dev/stdin)}"
|
||||
while IFS='\n' read -r LINE; do
|
||||
logger -t $BASENAME "$LINE"
|
||||
done <<< ${1:-$(</dev/stdin)}
|
||||
else
|
||||
# echo message to console
|
||||
[[ -n $1 ]] && echo "$1"
|
||||
|
||||
Reference in New Issue
Block a user