From ef802eda61c411a858b212a10ac3a821cead1b87 Mon Sep 17 00:00:00 2001 From: Martin Mena Date: Fri, 15 Mar 2024 12:02:45 -0500 Subject: [PATCH] Fix asdf installation --- home/.chezmoiscripts/run_once_after_02-asdf-install.sh.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/run_once_after_02-asdf-install.sh.tmpl b/home/.chezmoiscripts/run_once_after_02-asdf-install.sh.tmpl index b59b4b6..b698f1c 100644 --- a/home/.chezmoiscripts/run_once_after_02-asdf-install.sh.tmpl +++ b/home/.chezmoiscripts/run_once_after_02-asdf-install.sh.tmpl @@ -8,9 +8,10 @@ install_asdf() { if [[ $answer =~ ^[Yy]$ ]]; then if [[ ! -d ~/.asdf ]]; then action "Cloning git repo..." - git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0 && source ~/.asdf/asdf.sh || { echo "Failed to clone asdf repository"; exit 1; } + git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0 || { echo "Failed to clone asdf repository"; exit 1; } else ok "asdf dir already exists, skipping cloning" + source ~/.asdf/asdf.sh fi else ok "Skipping"