Only generate .tool-versions when ASDF is installed

Bo Jeanes 2020-10-24 17:54:25 +11:00
parent d7cbf8caf6
commit b6ed73162c
1 changed files with 1 additions and 1 deletions

View File

@ -123,5 +123,5 @@ EOF
$vim +PlugUpdate +PlugClean +qall
fi
find ~/.asdf/installs -maxdepth 2 -mindepth 2 -type d -printf '%P\n' | sort -Vru -t/ -k1,1 | tr / ' ' > ~/.tool-versions
[ -d ~/.asdf/installs ] && find ~/.asdf/installs -maxdepth 2 -mindepth 2 -type d -printf '%P\n' | sort -Vru -t/ -k1,1 | tr / ' ' > ~/.tool-versions
}