Skip to content

Commit 7e5e05f

Browse files
committed
script: ♻️Fix scripts on mac, use pwsh instead of powershell
1 parent 8d71f6e commit 7e5e05f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Build/bump-version-json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set_version_script="$script_dir/set-version-UnitsNet.Serialization.JsonNet.ps1"
55

66
names=(major minor patch suffix);
77
if [[ " "${names[@]}" " == *" "$1" "* ]] ;then
8-
powershell -NoProfile $set_version_script -bump $1
8+
pwsh -NoProfile $set_version_script -bump $1
99
exit 0
1010
else
1111
echo "Usage: ./bump-version-json.sh <major|minor|patch|suffix>"

Build/bump-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set_version_script="$script_dir/set-version-UnitsNet.ps1"
55

66
names=(major minor patch suffix);
77
if [[ " "${names[@]}" " == *" "$1" "* ]] ;then
8-
powershell -NoProfile $set_version_script -bump $1
8+
pwsh -NoProfile $set_version_script -bump $1
99
exit 0
1010
else
1111
echo "Usage: ./bump-version.sh <major|minor|patch|suffix>"

Build/set-version-json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
set_version_script="$script_dir/set-version-UnitsNet.Serialization.JsonNet.ps1"
55

66
if [ $# -eq 1 ]; then
7-
powershell -NoProfile $set_version_script -setVersion $1
7+
pwsh -NoProfile $set_version_script -setVersion $1
88
exit 0
99
else
1010
echo "Usage: ./set-version-json.sh <version>"

Build/set-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
set_version_script="$script_dir/set-version-UnitsNet.ps1"
55

66
if [ $# -eq 1 ]; then
7-
powershell -NoProfile $set_version_script -setVersion $1
7+
pwsh -NoProfile $set_version_script -setVersion $1
88
exit 0
99
else
1010
echo "Usage: ./set-version.sh <version>"

0 commit comments

Comments
 (0)