Skip to content

Commit

Permalink
works
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredLunde committed Sep 29, 2024
1 parent eeb6298 commit c469483
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ download_release "$ASDF_INSTALL_VERSION" "$release_file"
# Extract contents of tar.gz file into the download directory
if [[ $ext_name == ".zip" ]]; then
unzip -o "$release_file" -d "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"
# Strip the first directory from the zip file
mv "$ASDF_DOWNLOAD_PATH/$(ls -d $ASDF_DOWNLOAD_PATH/*)"/* "$ASDF_DOWNLOAD_PATH"
else
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"
fi
Expand Down
4 changes: 0 additions & 4 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ download_release() {
url="$GH_REPO/releases/download/v$version/envtpl-$target$ext_name"

echo "* Downloading $TOOL_NAME release $version..."
echo " $url"
echo " $filename"
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"
}

Expand All @@ -94,8 +92,6 @@ install_version() {
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"

tool_cmd=envtpl
# Test that file exists at path
ls -l "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to exist."
test -x "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to be executable."

echo "$TOOL_NAME $version installation was successful!"
Expand Down

0 comments on commit c469483

Please sign in to comment.