#!/bin/bash
#
sudo killall -9 "Google Chrome"
sudo killall -9 chrome
/bin/mkdir -p "${HOME}/Desktop/downloadfromjamf"
cd "${HOME}/Desktop/downloadfromjamf"
unzip -o "./Google Chrome.zip"
sudo rm -Rf "/Applications/Google Chrome.app/"
chmod -R 777 "${HOME}/Desktop/downloadfromjamf"
sudo /bin/cp -a "./Google Chrome.app" /Applications/
(/usr/bin/osascript -e 'display dialog "成功安装chrome浏览器,您可以删除桌面上的downloadfromjamf目录,如果打开chrome出现错误,请重启电脑!" buttons {"OK"} default button "OK"')
#把文件夹权限置为 777 ,让所有人可以删
sudo chmod -R 777 "${HOME}/Desktop/downloadfromjamf/"
cd ../
#rm -Rf "${HOME}/Desktop/downloadfromjamf"
exit 0