diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-17 12:53:40 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-18 10:29:39 -0600 |
| commit | 2a4bbbd4c655ac2eda4db0f9a89828be799fbca7 (patch) | |
| tree | 9a375aa34703f22a78023feebbdd5a145619efbb /config/install.sh | |
| parent | 8d7b66cbe0dc446c0c5b0ac2a996612d378aa435 (diff) | |
Skip install for each java version
Diffstat (limited to 'config/install.sh')
| -rw-r--r-- | config/install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/install.sh b/config/install.sh index d44b178..0f8a174 100644 --- a/config/install.sh +++ b/config/install.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -euo pipefail +set -euxo pipefail export DEBIAN_FRONTEND=noninteractive @@ -85,6 +85,9 @@ git clone https://github.com/asdf-vm/asdf.git "$ASDF_DATA_DIR" cd "$ASDF_DATA_DIR" git checkout "$(git describe --abbrev=0 --tags)" +# shellcheck source=/dev/null +. "$ASDF_DATA_DIR"/asdf.sh + while IFS= read -r line; do tool=$(echo "$line" | cut -d' ' -f1) asdf plugin-add "$tool" @@ -95,7 +98,7 @@ asdf reshim asdf current # Install org.codehaus.mojo:license-maven-plugin:download-licenses to $HOME/.m2/repository -grep java ~/.tool-versions | tr ' ' '\n' | grep -v java | while read -r version; do asdf shell java "$version" && mvn license:help; done +mvn license:help rm -fr /tmp mkdir -p /tmp |
