Create $EXTRACTION_PATH
This commit is contained in:
parent
8d2944d00c
commit
151d89d9f0
@ -1,7 +1,8 @@
|
|||||||
#! /bin/sh -
|
#! /bin/sh -
|
||||||
|
|
||||||
CPOLIS_REPO_URL="https://git.streifling.com/api/v1/repos/jason/cpolis/releases"
|
CPOLIS_REPO_URL="https://git.streifling.com/api/v1/repos/jason/cpolis/releases"
|
||||||
CPOLIS_PATH=$HOME/cpolis
|
EXTRACTION_PATH=$HOME
|
||||||
|
CPOLIS_PATH=$EXTRACTION_PATH/cpolis
|
||||||
TAILWINDCSS_REPO_URL=https://api.github.com/repos/tailwindlabs/tailwindcss/releases/latest
|
TAILWINDCSS_REPO_URL=https://api.github.com/repos/tailwindlabs/tailwindcss/releases/latest
|
||||||
SYSTEMD_USER_DIR=$HOME/.config/systemd/user
|
SYSTEMD_USER_DIR=$HOME/.config/systemd/user
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ SYSTEMD_USER_DIR=$HOME/.config/systemd/user
|
|||||||
rm -fr $CPOLIS_PATH/*
|
rm -fr $CPOLIS_PATH/*
|
||||||
latest_release=$(curl -s $CPOLIS_REPO_URL | jq -r '.[0].tag_name')
|
latest_release=$(curl -s $CPOLIS_REPO_URL | jq -r '.[0].tag_name')
|
||||||
curl -Lo /tmp/cpolis.tar.gz https://git.streifling.com/jason/cpolis/archive/$latest_release.tar.gz
|
curl -Lo /tmp/cpolis.tar.gz https://git.streifling.com/jason/cpolis/archive/$latest_release.tar.gz
|
||||||
tar -xzf /tmp/cpolis.tar.gz -C $CPOLIS_PATH
|
tar -xzf /tmp/cpolis.tar.gz -C $EXTRACTION_PATH
|
||||||
rm /tmp/cpolis.tar.gz
|
rm /tmp/cpolis.tar.gz
|
||||||
|
|
||||||
curl -s $TAILWINDCSS_REPO_URL |
|
curl -s $TAILWINDCSS_REPO_URL |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user