We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c95277 commit 9571dcdCopy full SHA for 9571dcd
Build/bump-version.sh
@@ -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