File tree 2 files changed +15
-1
lines changed 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Increments version of nuget UnitNets.Serialization.JsonNet.
3
+ script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4
+ set_version_script=" $script_dir /set-version-UnitsNet.Serialization.JsonNet.ps1"
5
+
6
+ names=(major minor patch suffix);
7
+ if [[ " " ${names[@]} " " == * " " $1 " " * ]] ; then
8
+ powershell -NoProfile $set_version_script -bump $1
9
+ exit 0
10
+ else
11
+ echo " Usage: ./bump-version-json.sh <major|minor|patch|suffix>"
12
+ exit 1
13
+ fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Increments version of nugets UnitNets, UnitsNet.NumberExtensions.
2
3
script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
3
4
set_version_script=" $script_dir /set-version-UnitsNet.ps1"
4
5
@@ -7,6 +8,6 @@ if [[ " "${names[@]}" " == *" "$1" "* ]] ;then
7
8
powershell -NoProfile $set_version_script -bump $1
8
9
exit 0
9
10
else
10
- echo " Usage: ./bump-version <major|minor|patch|suffix>"
11
+ echo " Usage: ./bump-version.sh <major|minor|patch|suffix>"
11
12
exit 1
12
13
fi
You can’t perform that action at this time.
0 commit comments