feat misc.sh: remove updateCacheReminder()

This commit is contained in:
prplwtf 2024-08-19 12:30:18 +02:00
parent fcaa4913f7
commit fe6a8be103

View file

@ -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