Skip to content

Commit

Permalink
Update asdf.rb
Browse files Browse the repository at this point in the history
Install a libexec under bin to maintain relative paths for sourcing scripts. 
This will target `bin/asdf` that will source other shell scripts, like 
`source "$(dirname "$(dirname "$0")")/lib/utils.bash"`

Probably need approval and eyes from maintainer(s)
Fix: asdf-vm/asdf#891
  • Loading branch information
seivan authored Mar 15, 2021
1 parent ad2780b commit 5014a0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/asdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Asdf < Formula
url "https://github.com/asdf-vm/asdf/archive/v0.8.0.tar.gz"
sha256 "9b667ca135c194f38d823c62cc0dc3dbe00d7a9f60caa0c06ecb3047944eadfa"
license "MIT"
revision 1
revision 2
head "https://github.com/asdf-vm/asdf.git"

bottle :unneeded
Expand All @@ -25,8 +25,8 @@ def install
bash_completion.install "completions/asdf.bash"
fish_completion.install "completions/asdf.fish"
zsh_completion.install "completions/_asdf"
libexec.install "bin/private"
prefix.install Dir["*"]
libexec.install Dir["*"]
bin.write_exec_script (libexec/"bin/asdf")
touch prefix/"asdf_updates_disabled"
end

Expand Down

0 comments on commit 5014a0e

Please sign in to comment.