From e9bbd5a6935c364837620ffaa64b051b4d481309 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Tue, 20 Sep 2022 23:40:27 +0000 Subject: [PATCH 1/1] fix(user/bksum):Inhibit stdout/err messages for wait timestamps - Note: 'ots --wait s file' prints terminal text every 30 seconds for every calendar server. Unless inhibited, these messages obscure the progress dots of 'bksum'. --- user/bksum | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user/bksum b/user/bksum index cb99cad..9597c82 100755 --- a/user/bksum +++ b/user/bksum @@ -5,7 +5,7 @@ # arg(s): file paths (IFS delimited) # Output: file containing sha256 hashes and file paths # Depends: bash v5.1.16, date (GNU Coreutils 8.32), gpg v2.2.27, ots v0.7.0 -# Version: 0.1.0 +# Version: 0.1.1 declare -Ag appRollCall # Associative array for storing app status declare -Ag fileRollCall # Associative array for storing file status @@ -494,7 +494,7 @@ main() { elif [[ $opTsWait == "true" ]]; then yell "NOTICE:Waiting for calendar server response in background. (This may take 8 to 24 hours)..."; yell "ADVICE:Do not close or suspend this terminal."; - try ots --wait s "$pathSumOut" & + try ots --wait s "$pathSumOut" 1>/dev/random 2>&1 & fi; fi; ## Timestamp checksum signature file. @@ -505,7 +505,7 @@ main() { elif [[ $opTsWait == "true" ]]; then yell "NOTICE:Waiting for calendar server response in background. (This may take 8 to 24 hours)..."; yell "ADVICE:Do not close or suspend this terminal."; - try ots --wait s "$pathSigOut" & + try ots --wait s "$pathSigOut" 1>/dev/random 2>&1 & fi; fi; -- 2.30.2