Read about our upcoming Code of Conduct on this issue

Commit 68a48cef authored by Ash McKenzie's avatar Ash McKenzie
Browse files

New asdf_is_available() function

parent c1c5dce496d3
......@@ -49,12 +49,20 @@ asdf_reshim() {
asdf reshim
asdf_is_available() {
if asdf version > /dev/null 2>&1; then
return 0
return 1
prefix_with_asdf_if_available() {
local command
if asdf version > /dev/null 2>&1; then
if asdf_is_available; then
eval "asdf exec ${command}"
eval "${command}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment