-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cbeb50
commit 15c0d50
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
cat > Formula/fixit.rb <<EOF | ||
class Fixit < Formula | ||
desc "A utility to fix mistakes in your commands." | ||
homepage "https://github.com/eugene-babichenko/fixit" | ||
version "$1" | ||
on_macos do | ||
on_arm do | ||
url "https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-aarch64-apple-darwin.tar.gz" | ||
sha256 "$(wget -O - https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-aarch64-apple-darwin.sha256)" | ||
end | ||
on_intel do | ||
url "https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-apple-darwin.tar.gz" | ||
sha256 "$(wget -O - https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-apple-darwin.sha256)" | ||
end | ||
end | ||
on_linux do | ||
on_intel do | ||
url "https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-unknown-linux-musl.tar.gz" | ||
sha256 "$(wget -O - https://github.com/eugene-babichenko/fixit/releases/download/$1/fixit-$1-x86_64-unknown-linux-musl.sha256)" | ||
end | ||
end | ||
def install | ||
bin.install "fixit" | ||
end | ||
end | ||
EOF |