1
0
Fork 0
forgejo-build/.ci-sha256.sh

16 lines
218 B
Bash
Executable File

#!/bin/sh
if [ $CI_COMMIT_TAG ] ; then
for f in $1*-$CI_COMMIT_TAG-$2 ; do
sha256sum $f > $f.sha256
done
else
for f in $1*-$2 ; do
sha256sum $f > $f.sha256
done
fi
for f in *.sha256 ; do
echo $f
cat $f
done