1
0
mirror of https://github.com/redis/go-redis.git synced 2025-11-26 06:23:09 +03:00

chore(scripts: fix help call in tag.sh (#3606)

This commit is contained in:
Nedyalko Dyakov
2025-11-21 11:52:56 +02:00
committed by GitHub
parent 5b0b228a37
commit 1bb9e0d130

View File

@@ -4,9 +4,25 @@ set -e
DRY_RUN=1
helps() {
cat <<- EOF
Usage: $0 TAGVERSION [-t]
Creates git tags for public Go packages.
ARGUMENTS:
TAGVERSION Tag version to create, for example v1.0.0
OPTIONS:
-t Execute git commands (default: dry run)
EOF
exit 0
}
if [ $# -eq 0 ]; then
echo "Error: Tag version is required"
help
helps
fi
TAG=$1
@@ -24,20 +40,6 @@ while getopts "t" opt; do
esac
done
help() {
cat <<- EOF
Usage: $0 TAGVERSION [-t]
Creates git tags for public Go packages.
ARGUMENTS:
TAGVERSION Tag version to create, for example v1.0.0
OPTIONS:
-t Execute git commands (default: dry run)
EOF
exit 0
}
if [ "$DRY_RUN" -eq 1 ]; then
echo "Running in dry-run mode"