We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f32e455 commit f5fedb6Copy full SHA for f5fedb6
.cog/bump_version.sh
@@ -11,5 +11,12 @@ if [ -z "$VERSION" ]; then
11
exit 1
12
fi
13
14
-sed -i '' "s/version: \"[^\"]*\"/version: \"${VERSION}\"/" mix.exs
+# Portable sed in-place update
15
+if sed --version >/dev/null 2>&1; then
16
+ # GNU sed
17
+ sed -i "s/version: \"[^\"]*\"/version: \"${VERSION}\"/" mix.exs
18
+else
19
+ # BSD/macOS sed
20
+ sed -i '' "s/version: \"[^\"]*\"/version: \"${VERSION}\"/" mix.exs
21
+fi
22
git add mix.exs
0 commit comments