peliprint/blueprint/lib/updateAdminCacheReminder.sh
2023-08-11 21:56:03 +02:00

11 lines
No EOL
476 B
Bash

#!/bin/bash
updateCacheReminder() {
cd &bp.folder&
# Overwrite previous adminCacheReminderHider with the default one.
oldClassName=$(cat .blueprint/data/internal/db/randomclassname);
newClassName=$RANDOM;
sed -i "s~$oldClassName~$newClassName~g" public/assets/extensions/blueprint/adminCacheReminderHider.css;
sed -i "s~$oldClassName~$newClassName~g" resources/views/layouts/admin.blade.php;
echo "$newClassName" > .blueprint/data/internal/db/randomclassname;
}