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