Small cleanup

This commit is contained in:
Jason Streifling 2024-08-18 13:56:41 +02:00
parent b1a6359473
commit 129c85929c

View File

@ -5,11 +5,11 @@ CPOLIS_PATH=$HOME/cpolis
TAILWINDCSS_REPO_URL=https://api.github.com/repos/tailwindlabs/tailwindcss/releases/latest
SYSTEMD_USER_DIR=$HOME/.config/systemd/user
! which curl >/dev/null && echo "curl needs to be installed" && exit 1
! which go >/dev/null && echo "go needs to be installed" && exit 1
! which jq >/dev/null && echo "jq needs to be installed" && exit 1
! which tar >/dev/null && echo "tar needs to be installed" && exit 1
! which xargs >/dev/null && echo "xargs needs to be installed" && exit 1
! which curl >/dev/null 2>&1 && echo "curl needs to be installed" >&2 && exit 1
! which go >/dev/null 2>&1 && echo "go needs to be installed" >&2 && exit 1
! which jq >/dev/null 2>&1 && echo "jq needs to be installed" >&2 && exit 1
! which tar >/dev/null 2>&1 && echo "tar needs to be installed" >&2 && exit 1
! which xargs >/dev/null 2>&1 && echo "xargs needs to be installed" >&2 && exit 1
latest_release=$(curl -s $CPOLIS_REPO_URL | jq -r '.[0].tag_name')
curl -Lo cpolis.tar.gz https://git.streifling.com/jason/cpolis/archive/$latest_release.tar.gz