1
0
Fork 0
mirror of https://github.com/Luzifer/github-publish.git synced 2024-12-20 18:01:22 +00:00

Remove extension before adding archive extension

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-12-28 18:40:30 +01:00
parent 5d0421aa0f
commit 63be49c12b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 3 additions and 3 deletions

View file

@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh 05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
59fc45e309d76de3290289f31126ca862b4858193bf2c12a8a080f2c13a6c23a golang.sh 4bf341ead6a10cc7ed1d0cb3122ae2bfcd738317bca92a565be49934778bf3b6 golang.sh

View file

@ -47,9 +47,9 @@ sha256sum ${REPO}_* > SHA256SUMS
for file in ${REPO}_*; do for file in ${REPO}_*; do
if [[ ${file} == *linux* ]]; then if [[ ${file} == *linux* ]]; then
tar -czf "${file}.tar.gz" "${file}" tar -czf "${file%%.*}.tar.gz" "${file}"
else else
zip "${file}.zip" "${file}" zip "${file%%.*}.zip" "${file}"
fi fi
rm "${file}" rm "${file}"
done done