From 486c7bdf0f9ba70460d73e04bac461299d380b23 Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:25:50 +0000 Subject: [PATCH] + sed to rewrite any legacy 'Quit' or Restart' cmd --- Helpers/launch-dep-en.sh | 2 ++ Helpers/launch-dep.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Helpers/launch-dep-en.sh b/Helpers/launch-dep-en.sh index e3c5cd9..737047a 100644 --- a/Helpers/launch-dep-en.sh +++ b/Helpers/launch-dep-en.sh @@ -1,3 +1,5 @@ # LAUNCH DEPNOTIFY FOR ENROLMENT +sed -i -e 's/Quit/Q*uit/' /var/tmp/depnotify.log +sed -i -e 's/Restart/R*estart/' /var/tmp/depnotify.log sudo -u $(stat -f "%Su" /dev/console) /bin/sh <<'END' open -a /Applications/Utilities/DEPNotify.app --args -fullScreen \ No newline at end of file diff --git a/Helpers/launch-dep.sh b/Helpers/launch-dep.sh index e6fe280..fe1ee2c 100644 --- a/Helpers/launch-dep.sh +++ b/Helpers/launch-dep.sh @@ -1 +1,3 @@ +sed -i -e 's/Quit/Q*uit/' /var/tmp/depnotify.log +sed -i -e 's/Restart/R*estart/' /var/tmp/depnotify.log bash -c 'osascript -e "tell application \"DEPNotify\"" -e "activate" -e "end tell"' \ No newline at end of file