|
|
|
@ -3,13 +3,16 @@
|
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
|
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
APP=bat
|
|
|
|
|
BAT_DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
|
|
|
|
BAT_CURRENT="${BAT_DEST}/current"
|
|
|
|
|
BAT_VERSION=${BAT_VERSION:-0.23.0}
|
|
|
|
|
BAT_VERSION=${BAT_VERSION:-0.24.0}
|
|
|
|
|
EXTRA_DEST="${XDG_DATA_HOME}/apps/releases/bat-extras"
|
|
|
|
|
EXTRA_CURRENT="${EXTRA_DEST}/current"
|
|
|
|
|
EXTRA_VERSION=${EXTRA_VERSION:-2023.03.21}
|
|
|
|
|
EXTRA_VERSION=${EXTRA_VERSION:-2023.09.19}
|
|
|
|
|
EXTRA_FILE=${EXTRA_FILE:-202309.19}
|
|
|
|
|
|
|
|
|
|
MAN_DIR=${XDG_DATA_HOME}/man/man1
|
|
|
|
|
|
|
|
|
@ -31,7 +34,7 @@ case $(uname -m) in
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
BAT_URL=https://github.com/sharkdp/bat/releases/download/v${BAT_VERSION}/bat-v${BAT_VERSION}-${ARCH}-${OS}.tar.gz
|
|
|
|
|
EXTRA_URL=https://github.com/eth-p/bat-extras/releases/download/v${EXTRA_VERSION}/bat-extras-${EXTRA_VERSION//\./}.zip
|
|
|
|
|
EXTRA_URL=https://github.com/eth-p/bat-extras/releases/download/v${EXTRA_VERSION}/bat-extras-${EXTRA_FILE}.zip
|
|
|
|
|
|
|
|
|
|
set_symlink () {
|
|
|
|
|
local dest_dir="$1"
|
|
|
|
|