13 lines
233 B
Bash
Executable file
13 lines
233 B
Bash
Executable file
#!/bin/sh
|
|
usage() {
|
|
echo "usage: bump-version <version-id>"
|
|
}
|
|
|
|
if [ $# -ne 1 ]; then
|
|
usage
|
|
exit 1
|
|
fi
|
|
|
|
echo "GITFLOW_VERSION=$1" > gitflow-version
|
|
git add gitflow-version
|
|
git commit -m "Bumped version number to $1" gitflow-version
|