From 8d2944d00c9b4d00acded155fb54a07b18a303f2 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 18 Aug 2024 17:06:49 +0200 Subject: [PATCH] Only delete contents of $CPOLIS_PATH --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 4c39d52..beb222e 100755 --- a/update.sh +++ b/update.sh @@ -11,7 +11,7 @@ SYSTEMD_USER_DIR=$HOME/.config/systemd/user ! 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 -rm -fr $CPOLIS_PATH +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