diff --git a/direnv/.local/bin/install-direnv-home b/direnv/.local/bin/install-direnv-home index 6e5afc6..6691c1a 100755 --- a/direnv/.local/bin/install-direnv-home +++ b/direnv/.local/bin/install-direnv-home @@ -8,6 +8,8 @@ VERSION=${VERSION:-2.28.0} DEST="${XDG_DATA_HOME}/apps/releases/${APP}" URL=https://github.com/direnv/direnv/releases/download/v${VERSION}/direnv.$(get_os)-$(get_arch) -extract_tarball "${URL}" "${DEST}/${VERSION}" +mkdir_if_missing "${DEST}/${VERSION}" +curl --silent --location --output "${DEST}/${VERSION}/${APP}" "${URL}" +chmod 755 "${DEST}/${VERSION}/${APP}" set_current_link "${DEST}" "${VERSION}" set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"