From: Gan Ainm Date: Sat, 25 Feb 2023 17:42:26 +0000 (+0100) Subject: Add local dummy variable to catch read input X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=be372d2a83e7443bb85fbc05f3b6bd063cf8610a;p=toolbox Add local dummy variable to catch read input --- diff --git a/include/log.sh b/include/log.sh index c936789..44b8ec4 100644 --- a/include/log.sh +++ b/include/log.sh @@ -87,7 +87,8 @@ _log_write() { local line if (( __log_verbosity < level )); then - [[ $# == 2 ]] && IFS="" read -r -d "" + local drain + [[ $# == 2 ]] && IFS="" read -r -d "" drain return 0 fi