commit fd58a48a159f0592027ca033f972332a51c375c3 Author: R. Francis Smith Date: Thu Jul 20 23:42:39 2017 -0500 initial testing diff --git a/bin/install b/bin/install new file mode 100755 index 0000000..cff589e --- /dev/null +++ b/bin/install @@ -0,0 +1,12 @@ +#!/bin/sh +# instructions taken straight from https://gradle.org/install/#manually +if [ "$ASDF_INSTALL_TYPE" = "ref" ] +then + git clone "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH" +else + mkdir -p "$ASDF_INSTALL_PATH" + cd "$ASDF_INSTALL_PATH" || exit 1 + curl -O https://services.gradle.org/distributions/gradle-${ASDF_INSTALL_VERSION}-bin.zip + unzip gradle-${ASDF_INSTALL_VERSION}-bin.zip + rm gradle-${ASDF_INSTALL_VERSION}-bin.zip +fi diff --git a/bin/list-all b/bin/list-all new file mode 100755 index 0000000..523d85a --- /dev/null +++ b/bin/list-all @@ -0,0 +1,2 @@ +#!/bin/sh +curl -s https://services.gradle.org/distributions/ | grep -e "distributions.*-bin.zip\"" | sed -e "s#^.*distributions/gradle-##" -e "s#-bin.zip.*##" | sort -t. -n | paste -s -d" " -