mirror of
https://github.com/Luzifer/github-publish.git
synced 2024-12-30 06:41:21 +00:00
Remove extension before adding archive extension
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5d0421aa0f
commit
63be49c12b
2 changed files with 3 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
||||||
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
||||||
59fc45e309d76de3290289f31126ca862b4858193bf2c12a8a080f2c13a6c23a golang.sh
|
4bf341ead6a10cc7ed1d0cb3122ae2bfcd738317bca92a565be49934778bf3b6 golang.sh
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue