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:
@@ -4,9 +4,25 @@ set -e
|
|||||||
|
|
||||||
DRY_RUN=1
|
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
|
if [ $# -eq 0 ]; then
|
||||||
echo "Error: Tag version is required"
|
echo "Error: Tag version is required"
|
||||||
help
|
helps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TAG=$1
|
TAG=$1
|
||||||
@@ -24,20 +40,6 @@ while getopts "t" opt; do
|
|||||||
esac
|
esac
|
||||||
done
|
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
|
if [ "$DRY_RUN" -eq 1 ]; then
|
||||||
echo "Running in dry-run mode"
|
echo "Running in dry-run mode"
|
||||||
|
|||||||
Reference in New Issue
Block a user