From b6194beb3efae1732c55c51567a6b793a70b96db Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:38:00 +0000 Subject: [PATCH] Added no cache to url --- Helpers/add-to-dock.sh | 2 +- Helpers/install-app-loop.sh | 2 +- Helpers/launch-app-installo.sh | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Helpers/add-to-dock.sh b/Helpers/add-to-dock.sh index 31cfede..6f6b6fe 100644 --- a/Helpers/add-to-dock.sh +++ b/Helpers/add-to-dock.sh @@ -42,7 +42,7 @@ fi # /usr/local/bin/dockutil --remove all --allhomes rm -rf /usr/local/bin/dockutil-labels.sh -curl -s -o /usr/local/bin/dockutil-labels.sh https://raw.githubusercontent.com/PurpleComputing/helpful-scripts/main/dockutil-labels.sh +curl -s -o /usr/local/bin/dockutil-labels.sh https://raw.githubusercontent.com/PurpleComputing/helpful-scripts/main/dockutil-labels.sh?v=123$(date +%s) chmod +x /usr/local/bin/dockutil-labels.sh diff --git a/Helpers/install-app-loop.sh b/Helpers/install-app-loop.sh index dcf103e..d67b2f3 100644 --- a/Helpers/install-app-loop.sh +++ b/Helpers/install-app-loop.sh @@ -18,7 +18,7 @@ echo "$MDMAPPLABEL" # CHECKS IF INSTALLOMATOR IS INSTALLED AND INSTALLS IF NOT if [ ! -e "/usr/local/Installomator/Installomator.sh" ]; then - curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Installomator.sh | bash + curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Installomator.sh?v=123$(date +%s) | bash fi # No sleeping diff --git a/Helpers/launch-app-installo.sh b/Helpers/launch-app-installo.sh index eeafb8b..46d1a76 100644 --- a/Helpers/launch-app-installo.sh +++ b/Helpers/launch-app-installo.sh @@ -7,12 +7,10 @@ #sudo -u $(stat -f "%Su" /dev/console) /bin/sh <<'END' #export CURL_SSL_BACKEND="secure-transport" -cd /Library/Application\ Support/Purple/ - # CHECKS FOR DIALOG AND PRESENTS IF REQUESTED if [ "$SHOWDIALOG" == "Y" ]; then echo "Dialog will open" - curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/show-dialog-depnotify.sh | bash + curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/show-dialog-depnotify.sh?v=123$(date +%s) | bash else echo "Dialog will not open" echo Continuing... @@ -20,12 +18,12 @@ fi # INSTALLS APPLICATION sleep 5 -curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/install-app-loop.sh | bash +curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/install-app-loop.sh?v=123$(date +%s) | bash # CHECKS TO ADD TO DOCK OR NOT if [ "$MDMADDTODOCK" == "Y" ]; then echo "SCRIPT WILL TRY TO ADD TO DOCK" - curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/add-to-dock.sh | bash + curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/add-to-dock.sh?v=123$(date +%s) | bash sleep 2 killall Dock else