Skip to content

Commit 3037ffc

Browse files
authored
Merge branch 'master' into auto-release/2.12.3
2 parents aaa8811 + 62f99fa commit 3037ffc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

scripts/update-v1.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ darwin_sha="$(echo "$2" | tr "[:upper:]" "[:lower:]")"
1111
linux_sha="$(echo "$3" | tr "[:upper:]" "[:lower:]")"
1212

1313
# Replace version
14-
sed -i "s/version \"[0-9.]*\"/version \"$version\"/g" "../Formula/[email protected]"
14+
sed -i "s/version \"[0-9.]*\"/version \"${version}\"/g" "../Formula/[email protected]"
1515

1616
# Update macOS hash
17-
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$darwin_sha\"/1" "../Formula/[email protected]"
17+
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"${darwin_sha}\"/1" "../Formula/[email protected]"
1818

1919
# Update Linux hash
20-
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$linux_sha\"/2" "../Formula/[email protected]"
20+
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"${linux_sha}\"/2" "../Formula/[email protected]"

scripts/update-v2.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ darwin_intel_sha="$(echo "$3" | tr "[:upper:]" "[:lower:]")"
1212
linux_sha="$(echo "$4" | tr "[:upper:]" "[:lower:]")"
1313

1414
# Replace version
15-
sed -i "s/version \"[0-9.]*\"/version \"$version\"/g" "../Formula/coder.rb"
15+
sed -i "s/version \"[0-9.]*\"/version \"${version}\"/g" "../Formula/coder.rb"
1616

1717
# Update macOS ARM hash
18-
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$darwin_arm_sha\"/1" "../Formula/coder.rb"
18+
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"${darwin_arm_sha}\"/1" "../Formula/coder.rb"
1919

2020
# Update macOS Intel hash
21-
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$darwin_intel_sha\"/2" "../Formula/coder.rb"
21+
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"${darwin_intel_sha}\"/2" "../Formula/coder.rb"
2222

2323
# Update Linux hash
24-
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$linux_sha\"/3" "../Formula/coder.rb"
24+
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"${linux_sha}\"/3" "../Formula/coder.rb"

0 commit comments

Comments
 (0)