Skip to content

Commit 9571dcd

Browse files
committed
Add shell scripts to bump versions
1 parent 3c95277 commit 9571dcd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Build/bump-version.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
3+
set_version_script="$script_dir/set-version-UnitsNet.ps1"
4+
5+
names=(major minor patch suffix);
6+
if [[ " "${names[@]}" " == *" "$1" "* ]] ;then
7+
powershell -NoProfile $set_version_script -bump $1
8+
exit 0
9+
else
10+
echo "Usage: ./bump-version <major|minor|patch|suffix>"
11+
exit 1
12+
fi

0 commit comments

Comments
 (0)