From dc5ce6f1f304eac1d10fd52f948745b18bfa2c3b Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 16 Aug 2024 19:47:40 +0200 Subject: [PATCH] Fix cache time check --- osuboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"