scripts dutchification - batch 1

This commit is contained in:
bergware
2023-10-04 19:35:31 +02:00
parent e374ab4aaf
commit 2a5790b4c9

View File

@@ -21,5 +21,5 @@ log(){
/usr/bin/logger -t $BASENAME -- "$LINE"
done <<< ${1:-$(</dev/stdin)}
# echo message to console
[[ -n $1 ]] && /bin/echo "$BASENAME: $1"
[[ -t 1 && -n $1 ]] && /bin/echo "$BASENAME: $1"
}