Skip to content

Commit ac2b197

Browse files
authored
Fix sha512sum file generation
Change sha512sum command line so that it does not include subdirectory paths with the filename in the generated file, as that makes it harder to check the sha512sum later via the --check option.
1 parent 6ec1927 commit ac2b197

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci/before-deploy.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ with tarfile.open("tag_build/${PKG_NAME_VER}.tar", mode="a:") as tf:
5757
tf.add("README.rst", arcname="${PKG_NAME_VER}/README.rst")
5858
EOF
5959

60-
gzip ./tag_build/${PKG_NAME_VER}.tar
61-
62-
sha512sum --binary ./tag_build/${PKG_NAME_VER}.tar.gz > ./tag_build/${PKG_NAME_VER}.sha512sum
60+
pushd ./tag_build
61+
gzip ${PKG_NAME_VER}.tar
6362

63+
sha512sum --binary ${PKG_NAME_VER}.tar.gz > ${PKG_NAME_VER}.sha512sum
64+
popd

0 commit comments

Comments
 (0)