#!/bin/bash
#
/bin/mkdir -p "${HOME}/Desktop/downloadfromjamf"
cd "${HOME}/Desktop/downloadfromjamf"
unzip -o "./JS-10.54.2.8(mac).run.zip"
hdiutil attach "./JS-10.54.2.8(mac).run.dmg"
sudo installer -pkg /Volumes/TECAGENT/TecAgent.pkg -target /
hdiutil detach /Volumes/TECAGENT
(/usr/bin/osascript -e 'display dialog "成功安装ipguard,1)需要重启2)如果是M1芯片,可能需要进恢复模式,您可以删除桌面上的downloadfromjamf目录!" buttons {"OK"} default button "OK"')
#cd ../
#rm -Rf "${HOME}/Desktop/downloadfromjamf"
exit 0