Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not set ASDF_DATA_DIR #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ else
fi

echo "==> Injecting asdf into PATH"
ASDF_DATA_DIR=`brew --prefix asdf`
# shellcheck disable=SC2016
ASDF_CONFIG_LINE='source $(brew --prefix asdf)/libexec/asdf.sh'

if grep -Fq "$ASDF_DATA_DIR" $SHELL_CONFIG
if grep -Fq "$ASDF_CONFIG_LINE" "$SHELL_CONFIG"
then
echo " Already found asdf in path. Skipping."
else
echo "export ASDF_DATA_DIR=$ASDF_DATA_DIR" >> $SHELL_CONFIG
echo 'source $ASDF_DATA_DIR/libexec/asdf.sh' >> $SHELL_CONFIG
echo "$ASDF_CONFIG_LINE" >> "$SHELL_CONFIG"
echo
fi
source $SHELL_CONFIG
Expand Down