expiration-check/bin/rename-builds.sh
Simon Vieille e1305e18dd
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
add set -e option in shell scripts
2024-07-29 12:19:44 +02:00

19 lines
314 B
Bash
Executable file

#!/bin/sh
set -e
VERSION="$1"
for OS in linux windows darwin; do
if [ "$OS" = "windows" ]; then
EXTENSION=".exe"
else
EXTENSION=
fi
for ARCH in amd64 arm64; do
mv -v \
"build/expiration-check-${OS}-${ARCH}${EXTENSION}" \
"build/expiration-check-${VERSION}-${OS}-${ARCH}${EXTENSION}"
done
done