prevent update to mojave

in /Library/Bundles/
then move it to doc folder and turn off

sudo mv /Library/Bundles/OSXNotification.bundle ~/Documents/ && softwareupdate --ignore macOSInstallerNotification_GM

turn back
move it back to /Library/Bundles/

softwareupdate --reset-ignored

Tags: