From: Steven Baltakatei Sandoval Date: Tue, 20 Sep 2022 23:40:27 +0000 (+0000) Subject: fix(user/bksum):Inhibit stdout/err messages for wait timestamps X-Git-Tag: 0.5.1~1 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/e9bbd5a6935c364837620ffaa64b051b4d481309?ds=sidebyside;hp=07b20692dcdd8c69f7ee1e074a24deefee010d89 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'. --- 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;