diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-17 16:48:15 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-17 16:48:15 -0600 |
| commit | adb158d1df5bb691793074b10e9b857d45ff59eb (patch) | |
| tree | cada56e243f974f3c1ca1faa76ffe7ee4d50e82e | |
| parent | 1eec12743b42e987801e335b11884158480d6640 (diff) | |
Skip tool install unless required
| -rwxr-xr-x | run.sh | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -67,10 +67,18 @@ function prepare_dotnet() { [[ $(ls ./*.sln 2> /dev/null) ]] && RECURSIVE="--recursive" } +function prepare_tools() { + if asdf current 2> >(grep -q 'is not installed'); then + echo "No tools to install" + else + echo "Installing missing tools" + asdf install 2>&1 + fi +} + function prepare_project() { if [[ -z ${SETUP_CMD:-} ]]; then - asdf install > /dev/null 2>&1 - + prepare_tools || true prepare_javascript || true prepare_dotnet || true else |
