mirror of
https://github.com/helm/helm.git
synced 2026-08-06 08:01:19 +00:00
Merge pull request #7277 from t2sa/feat/shasum
feat(checksum): Generate shasum/sha256sum -c compatible sha256 file
This commit is contained in:
3
Makefile
3
Makefile
@@ -163,8 +163,9 @@ sign:
|
||||
|
||||
.PHONY: checksum
|
||||
checksum:
|
||||
@if [ -f "_dist/shasums.txt" ]; then >_dist/shasums.txt; fi
|
||||
for f in _dist/*.{gz,zip} ; do \
|
||||
shasum -a 256 "$${f}" | awk '{print $$1}' > "$${f}.sha256" ; \
|
||||
shasum -a 256 "$${f}" | sed 's/_dist\///' | tee -a "_dist/shasums.txt" | awk '{print $$1}' > "$${f}.sha256" ; \
|
||||
done
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user