added some checks and better readable output
This commit is contained in:
parent
0554803ef3
commit
cfc97be5ca
15
wiremac.sh
15
wiremac.sh
@ -14,6 +14,17 @@ else
|
|||||||
echo "$wireguardzip"
|
echo "$wireguardzip"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unzip WireGuard.app.zip -d /Applications/
|
|
||||||
|
|
||||||
sudo chown -R root:wheel /Applications/WireGuard.app
|
echo "Entpacke Zip in den Programme Ordner"
|
||||||
|
if unzip WireGuard.app.zip -d /Applications/ >/dev/null; then
|
||||||
|
echo "Entpacken erfolgreich"
|
||||||
|
else
|
||||||
|
echo "Entpacken hat nicht funktioniert"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Fixe Berechtigungen"
|
||||||
|
if sudo chown -R root:wheel /Applications/WireGuard.app; then
|
||||||
|
echo "Berechtigungen erfolgreich gefixed"
|
||||||
|
else
|
||||||
|
echo "Berechtigungen konnten nicht behoben werden."
|
||||||
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user