Skip to content

Commit

Permalink
Merge pull request #31 from Nurtic-Vibe/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tpill90 authored Jun 9, 2023
2 parents 8a467b3 + 1cab29d commit 747ecf3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ if [ -z "${LATEST_TAG}" ]; then
fi
echo -e " Found latest version : ${Cyan} ${LATEST_TAG} ${NC}"

# Checking to see if EpicPrefill is already up to date
if [ -f ./EpicPrefill ]; then
CURRENT_VERSION=$(./EpicPrefill --version)

if [ "${CURRENT_VERSION}" == "v${LATEST_TAG}" ]; then
echo -e "${Yellow} Already up to date !${NC}"
exit
fi
fi

# Downloading latest version
echo -e "${Yellow} Downloading... ${NC}"
DOWNLOAD_URL="https://github.com/tpill90/epic-lancache-prefill/releases/download/v${LATEST_TAG}/EpicPrefill-${LATEST_TAG}-linux-x64.zip"
Expand All @@ -48,4 +58,4 @@ chmod +x EpicPrefill update.sh
# Cleanup
rm EpicPrefill-${LATEST_TAG}-linux-x64.zip

echo -e " ${Cyan} Complete! ${NC}"
echo -e " ${Cyan} Complete! ${NC}"

0 comments on commit 747ecf3

Please sign in to comment.