File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ class CoderAT1 < Formula
5
5
6
6
if OS . mac?
7
7
url "https://github.com/coder/coder-v1-cli/releases/download/v#{ version } /coder-cli-darwin-amd64.zip"
8
- sha256 "f3fe13cec4d0615a40134675279d4cd1a5a871356d90dedef020981622f1b693" # mac
8
+ sha256 "f3fe13cec4d0615a40134675279d4cd1a5a871356d90dedef020981622f1b693"
9
9
else
10
10
url "https://github.com/coder/coder-v1-cli/releases/download/v#{ version } /coder-cli-linux-amd64.tar.gz"
11
- sha256 "642320e709a8585ae732e3b31d5945a09cd2a7d63121d7121c34ebc5740d3fc9" # linux
11
+ sha256 "642320e709a8585ae732e3b31d5945a09cd2a7d63121d7121c34ebc5740d3fc9"
12
12
end
13
13
14
14
keg_only :versioned_formula
Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ darwin_sha="$(echo "$2" | tr "[:upper:]" "[:lower:]")"
12
12
linux_sha=" $( echo " $3 " | tr " [:upper:]" " [:lower:]" ) "
13
13
14
14
# Get the old version to use in our find/replace.
15
- old_version=" $( sed -n " s/.*version \" \(.*\)\" .*/\1/p" " ../coder@1.rb" ) "
15
+ old_version=" $( sed -n " s/.*version \" \(.*\)\" .*/\1/p" " ../Formula/ coder@1.rb" ) "
16
16
if [[ " $old_version " == " " ]]; then
17
17
echo " Could not determine the old version of the formula..." >&2
18
18
exit 1
19
19
fi
20
20
21
21
# Replace version
22
- sed -i ' ' " s/${old_version// ./ \. } /${version// ./ \. } /g" " ../coder@1.rb"
22
+ sed -i " s/${old_version// ./ \. } /${version// ./ \. } /g" " ../Formula /coder@1.rb"
23
23
24
24
# Update macOS hash
25
- sed -i ' ' " s/sha256 \" [a-f0-9]*\" # mac /sha256 \" $darwin_sha \" # mac/ " " ../coder@1.rb"
25
+ sed -zi " s/sha256 \" [a-f0-9]*\" /sha256 \" $darwin_sha \" /1 " " ../Formula /coder@1.rb"
26
26
27
27
# Update Linux hash
28
- sed -i ' ' " s/sha256 \" [a-f0-9]*\" # linux /sha256 \" $linux_sha \" # linux/ " " ../coder@1.rb"
28
+ sed -zi " s/sha256 \" [a-f0-9]*\" /sha256 \" $linux_sha \" /2 " " ../Formula /coder@1.rb"
You can’t perform that action at this time.
0 commit comments