From cb0d85dc11c82d2258ec0e6b6bbdfd95783e2157 Mon Sep 17 00:00:00 2001 From: Bambooin Date: Fri, 25 Jun 2021 18:41:36 +0800 Subject: [PATCH] chore: move shasum to one file --- script/sha256sum.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/script/sha256sum.sh b/script/sha256sum.sh index 1b4aa0a..9567838 100755 --- a/script/sha256sum.sh +++ b/script/sha256sum.sh @@ -1,12 +1,14 @@ #!/usr/bin/env bash releasePath=release +shasum=rimerc.sha256.txt pushd ${releasePath} -for zip in *.zip -do - sha256sum ${zip} > ${zip}.sha256.txt -done +# generate shasum +sha256sum *.zip > ${shasum} + +# check shasum +sha256sum -c ${shasum} popd