Fix direnv install script

main
Buddy Sandidge 3 years ago
parent d634bf5035
commit 32d3e79313

@ -8,6 +8,8 @@ VERSION=${VERSION:-2.28.0}
DEST="${XDG_DATA_HOME}/apps/releases/${APP}" DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
URL=https://github.com/direnv/direnv/releases/download/v${VERSION}/direnv.$(get_os)-$(get_arch) 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_current_link "${DEST}" "${VERSION}"
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}" set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"

Loading…
Cancel
Save