From fe6a8be1034163ff651f099acbd2563cb8886403 Mon Sep 17 00:00:00 2001 From: prplwtf Date: Mon, 19 Aug 2024 12:30:18 +0200 Subject: [PATCH] feat `misc.sh`: remove updateCacheReminder() --- scripts/libraries/misc.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/libraries/misc.sh b/scripts/libraries/misc.sh index de77fdd..e006fd2 100644 --- a/scripts/libraries/misc.sh +++ b/scripts/libraries/misc.sh @@ -25,20 +25,6 @@ sendTelemetry() { } -# === CACHEREMINDER === -updateCacheReminder() { - cd "${BLUEPRINT__FOLDER}" || return - # Overwrite previous adminCacheReminderHider with the default one. - oldClassName=$(cat .blueprint/extensions/blueprint/private/db/randomclassname) - newClassName=$RANDOM$RANDOM$RANDOM$RANDOM - mv .blueprint/extensions/blueprint/assets/misc/cacheOverlay-"${oldClassName}".css .blueprint/extensions/blueprint/assets/misc/cacheOverlay-"${newClassName}".css - sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" .blueprint/extensions/blueprint/assets/blueprint.style.css - sed -i "s~I0TWHOPKAB-$oldClassName~I0TWHOPKAB-$newClassName~g" resources/views/blueprint/admin/admin.blade.php - sed -i "s~I0TWHOPKAB-$oldClassName~I0TWHOPKAB-$newClassName~g" .blueprint/extensions/blueprint/assets/misc/cacheOverlay-"${newClassName}".css - echo "$newClassName" > .blueprint/extensions/blueprint/private/db/randomclassname -} - - # === SHIFTARGS === shiftArgs() { shift 1