From 151d89d9f0109269ae74d8f7148a4d0391a46fc5 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 18 Aug 2024 17:10:10 +0200 Subject: [PATCH] Create $EXTRACTION_PATH --- update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index beb222e..9fa06c9 100755 --- a/update.sh +++ b/update.sh @@ -1,7 +1,8 @@ #! /bin/sh - 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 SYSTEMD_USER_DIR=$HOME/.config/systemd/user @@ -14,7 +15,7 @@ SYSTEMD_USER_DIR=$HOME/.config/systemd/user rm -fr $CPOLIS_PATH/* 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 -tar -xzf /tmp/cpolis.tar.gz -C $CPOLIS_PATH +tar -xzf /tmp/cpolis.tar.gz -C $EXTRACTION_PATH rm /tmp/cpolis.tar.gz curl -s $TAILWINDCSS_REPO_URL |