Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6df88ca

Browse files
authored
chore: put braces around variable references (#143)
Make shellcheck happy, since that got added to the upstream action.Unblocks#142
1 parent3e9e12e commit6df88ca

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎scripts/update-v1.sh

Lines changed: 3 additions & 3 deletions
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/coder@1.rb"
14+
sed -i"s/version\"[0-9.]*\"/version\"${version}\"/g""../Formula/coder@1.rb"
1515

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

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

‎scripts/update-v2.sh

Lines changed: 4 additions & 4 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp