Added zellij auto updater
This commit is contained in:
parent
0c20efd44d
commit
fc9a93c2bc
|
@ -0,0 +1,16 @@
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ZELLIJ_PATH="${ZELLIJ_PATH:-$(which zellij.latest)}" || true
|
||||||
|
[[ -n "${ZELLIJ_PATH}" ]] || ZELLIJ_PATH="$HOME/bin/zellij.latest"
|
||||||
|
|
||||||
|
if [[ ! -x "${ZELLIJ_PATH}" || -n "$UPGRADE" ]]; then
|
||||||
|
[[ -d /tmp/zellij ]] && rm -fR /tmp/zellij* ]]
|
||||||
|
bash <(curl -qsL zellij.dev/launch) --help > /dev/null
|
||||||
|
cp /tmp/zellij/bootstrap/zellij ~/bin/zellij.latest
|
||||||
|
fi
|
||||||
|
|
||||||
|
[[ -x "${ZELLIJ_PATH:?"Can't find zellij executable"}" ]]
|
||||||
|
|
||||||
|
exec $ZELLIJ_PATH "${@}"
|
Loading…
Reference in New Issue