22 lines
732 B
Bash
22 lines
732 B
Bash
#!/bin/bash
|
|
##########################################################################
|
|
# Shellscript : Beendet laufenden Google Chrome Application und löscht
|
|
# alle Google Chrome_*. Es bleibt nur die Google Chrome.app im Applicatin Ordner
|
|
# diese kann dann über den Patch Manager aktuallisiert werden.
|
|
# Autor : Andreas Vogel, macenterprise gmbh,
|
|
##########################################################################
|
|
|
|
|
|
# Close Google Chrome if run
|
|
|
|
if ( pgrep "Google Chrome" > /dev/null ); then
|
|
echo "Killing Google Chrome"
|
|
sudo killall "Google Chrome"
|
|
else
|
|
echo "Google Chrome is not running"
|
|
fi
|
|
|
|
# Delete all ather Versions of Application Google Chrome
|
|
|
|
sudo rm -rfv /Applications/Google\ Chrome_*.app
|