Only delete contents of $CPOLIS_PATH
This commit is contained in:
parent
9ddd8198ee
commit
8d2944d00c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user