diff --git a/osuboot.sh b/osuboot.sh index f438d15..3eeb1db 100755 --- a/osuboot.sh +++ b/osuboot.sh @@ -102,7 +102,7 @@ fi # Download osu!lazer echo -en "${COLOR_DEFAULT}:: Downloading osu!lazer" if [ -z "${OSUBOOT_DRYRUN}" ]; then - if [ ! -f "$HOME/.cache/osu.AppImage" ] || [ -n "$(find "$HOME/.cache/osu.AppImage" -ctime "+${OSUBOOT_MAX_INITIALIZATION_TIME}" 2>/dev/null)" ]; then + if [ ! -f "$HOME/.cache/osu.AppImage" ] || [ -n "$(find "$HOME/.cache/osu.AppImage" -ctime "+${OSUBOOT_MAX_CACHE_TIME}" 2>/dev/null)" ]; then echo -e "${RESET}" wget --quiet --show-progress -O "$HOME/.cache/osu.AppImage.tmp" "${OSUBOOT_DOWNLOAD_URL}" mv "${HOME}/.cache/osu.AppImage.tmp" "${HOME}/.cache/osu.AppImage"