Skip to content

Commit

Permalink
Fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
brhahlen committed Jun 21, 2024
1 parent f8e2c92 commit dad59f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -m

# VERSION
export DC_VERSION=v3.4.2
export DC_VERSION=v3.4.3-dev

###### VARIABLES
if [[ -z "${DC_DIR}" ]]; then
Expand Down Expand Up @@ -334,7 +334,11 @@ function update(){
mkdir "${UPDATE_TMP}"
fi
printf "Downloading... \n"
if wget -V | grep -q Wget2 ; then
wget -q --force-progress https://github.com/brhahlen/dc/releases/download/"${LATEST_VERSION}"/dc-release.zip -O "${UPDATE_TMP}"/dc-release.zip
else
wget -q --show-progress https://github.com/brhahlen/dc/releases/download/"${LATEST_VERSION}"/dc-release.zip -O "${UPDATE_TMP}"/dc-release.zip
fi
printf "Extracting... \n"
unzip -q "${UPDATE_TMP}"/dc-release.zip -d "${UPDATE_TMP}"
printf "Updating... \n"
Expand Down

0 comments on commit dad59f7

Please sign in to comment.