Skip to content

Commit

Permalink
Update up.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
tedbauer authored May 2, 2024
1 parent e7a3a22 commit 77c7cdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Formula/up.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ class Up < Formula
homepage "https://github.com/tedbauer/up"
url "https://github.com/tedbauer/up/"
version "0.1.0"

formula_path = Pathname.new(__FILE__).expand_path

def install
# Check for CARGO_HOME environment variable
Expand Down Expand Up @@ -34,7 +36,6 @@ def install
sub_dir_name = "up-build"
build_dir = tmp_dir_path.join(sub_dir_name)

formula_path = Pathname.new(__FILE__).expand_path
up_path_gen_dir = formula_path.dirname.join("up-path-gen")
cd up_path_gen_dir do
system "rustup", "override", "set", "stable"
Expand All @@ -48,7 +49,7 @@ def install

def caveats; <<~EOS
To use the 'up' command, source this script in your shell profile:
export BINARY_PATH=$(brew --prefix)/lib/up-path-gen && source #{stage}/up.sh
export BINARY_PATH=$(brew --prefix)/lib/up-path-gen && source #{formula_path}/up.sh
EOS
end

Expand Down

0 comments on commit 77c7cdd

Please sign in to comment.