From 3bba30d8dbad380f1ae3fbd85e43f16722565efb Mon Sep 17 00:00:00 2001 From: kogeletey Date: Mon, 27 Nov 2023 18:49:31 +0300 Subject: [PATCH] fix: download path changed to standard --- bin/download | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/download b/bin/download index e7129dd..334a99a 100755 --- a/bin/download +++ b/bin/download @@ -19,8 +19,9 @@ download_release "$ASDF_INSTALL_VERSION" "$release_file" # Extract contents of tar.gz file into the download directory tar --use-compress-program=unzstd -xvf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file" +# Move from bin to standart directory and change rules to executable +mv "$ASDF_DOWNLOAD_PATH/bin/$TOOL_NAME" "$ASDF_DOWNLOAD_PATH/$TOOL_NAME" +chmod +x "$ASDF_DOWNLOAD_PATH/$TOOL_NAME" # Remove the tar.gz file since we don't need to keep it rm "$release_file" -mv "$ASDF_DOWNLOAD_PATH/usr/bin/$TOOL_NAME" "$ASDF_DOWNLOAD_PATH/$TOOL_NAME" -chmod +x "$ASDF_DOWNLOAD_PATH/$TOOL_NAME"