|
|
@ -1,11 +1,13 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
|
|
|
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
|
|
|
|
|
|
|
|
|
|
|
APP=helm
|
|
|
|
APP=helm
|
|
|
|
VERSION=${VERSION:-3.11.1}
|
|
|
|
VERSION=${VERSION:-3.15.2}
|
|
|
|
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
|
|
|
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -d "${DEST}/${VERSION}" ]]; then
|
|
|
|
if [[ ! -d "${DEST}/${VERSION}" ]]; then
|
|
|
|
DL_DIR="$(mktemp -d)"
|
|
|
|
DL_DIR="$(mktemp -d)"
|
|
|
|