This is an automated email from the ASF dual-hosted git repository.
stanciu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-release.git
The following commit(s) were added to refs/heads/master by this push:
new 6de3ded Fix SHA512 verification (#404)
6de3ded is described below
commit 6de3ded8803948807dcc5fb40cf9c9cd3b39ac15
Author: Cosmin Stanciu <[email protected]>
AuthorDate: Wed Jan 5 20:37:02 2022 -0800
Fix SHA512 verification (#404)
---
tools/rcverify.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/rcverify.sh b/tools/rcverify.sh
index 0139996..869b1c9 100755
--- a/tools/rcverify.sh
+++ b/tools/rcverify.sh
@@ -82,7 +82,7 @@ echo "$(tput setaf 6)$DIR$(tput sgr0)"
## if the two arguments are not equal, prints 'failed' and the
## third argument if present
function validate() {
- if [[ $1 == $2 ]]; then
+ if [[ "$(echo "$1" | tr -d '[:space:]')" == "$(echo "$2" | tr -d
'[:space:]')" ]]; then
printf " $(tput setaf 2)passed$(tput sgr0)"
if [[ $4 != "" ]]; then
echo " ($4)"