We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06145ee commit c329903Copy full SHA for c329903
scripts/create_release_branch.sh
@@ -5,7 +5,14 @@ echo "Preparing release $VERSION"
5
6
# Update .csproj file
7
# This regex to update Version tag in .csproj file
8
-sed -i '' 's|<Version>\(.*\)</Version>|<Version>'"${VERSION}"'</Version>|g' src/stream-net.csproj
+# Detect OS and use appropriate sed syntax
9
+if [[ "$OSTYPE" == "darwin"* ]]; then
10
+ # macOS/BSD sed
11
+ sed -i '' 's|<Version>\(.*\)</Version>|<Version>'"${VERSION}"'</Version>|g' src/stream-net.csproj
12
+else
13
+ # Linux/GNU sed
14
+ sed -i 's|<Version>\(.*\)</Version>|<Version>'"${VERSION}"'</Version>|g' src/stream-net.csproj
15
+fi
16
17
18
# Create changelog
0 commit comments