We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41fa32a commit f2ff8a4Copy full SHA for f2ff8a4
ci/update-v1.sh
@@ -11,15 +11,8 @@ version="$1"
11
darwin_sha="$(echo "$2" | tr "[:upper:]" "[:lower:]")"
12
linux_sha="$(echo "$3" | tr "[:upper:]" "[:lower:]")"
13
14
-# Get the old version to use in our find/replace.
15
-old_version="$(sed -n "s/.*version \"\(.*\)\".*/\1/p" "../Formula/coder@1.rb")"
16
-if [[ "$old_version" == "" ]]; then
17
- echo "Could not determine the old version of the formula..." >&2
18
- exit 1
19
-fi
20
-
21
# Replace version
22
-sed -i "s/${old_version//./\.}/${version//./\.}/g" "../Formula/coder@1.rb"
+sed -i "s/version \"[0-9.]*\"/version \"$version\"/g" "../Formula/coder@1.rb"
23
24
# Update macOS hash
25
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$darwin_sha\"/1" "../Formula/coder@1.rb"
0 commit comments