mirror of
https://github.com/PurpleComputing/mdmscripts.git
synced 2026-02-03 14:13:27 +00:00
Update update-macOS-latest.sh
This commit is contained in:
@@ -13,12 +13,12 @@ fi
|
|||||||
|
|
||||||
if [ "$SHOWDIALOG" == "Y" ]; then
|
if [ "$SHOWDIALOG" == "Y" ]; then
|
||||||
echo "Dialog will open"
|
echo "Dialog will open"
|
||||||
/usr/local/bin/dialog dialog --title "Purple Managed macOS Updates" --message "**WARNING: Restart Required** \n\nYou are about to install an OS update which could take up to 1 hour 30 minutes to install. \n\n Please confirm you have saved all work and wish to continue?" --blurscreen --icon "https://www.apple.com/newsroom/images/product/os/macos/standard/Apple-WWDC22-macOS-Ventura-Spotlight-show-220606_big.jpg.large.jpg" --overlayicon warning --ontop --button1text "Continue" --button1shellaction "curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --reinstall --depnotify --check-power --power-wait-limit 180 --update" --button2text "Later"
|
/usr/local/bin/dialog dialog --title "Purple Managed macOS Updates" --message "**WARNING: Restart Required** \n\nYou are about to install an OS update which could take up to 1 hour 30 minutes to install. \n\n Please confirm you have saved all work and wish to continue?" --icon "https://www.apple.com/newsroom/images/product/os/macos/standard/Apple-WWDC22-macOS-Ventura-Spotlight-show-220606_big.jpg.large.jpg" --overlayicon warning --ontop --button1text "Continue" --button1shellaction "curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --reinstall --current-user --depnotify --check-power --power-wait-limit 180 --update" --button2text "Later"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Dialog will not open"
|
echo "Dialog will not open"
|
||||||
echo Continuing...
|
echo Continuing...
|
||||||
curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --reinstall --depnotify --check-power --power-wait-limit 180 --update
|
curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --reinstall --current-user --depnotify --check-power --power-wait-limit 180 --update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#PROMPTS WITH INSTALL
|
#PROMPTS WITH INSTALL
|
||||||
|
|||||||
Reference in New Issue
Block a user