added some checks and better readable output

This commit is contained in:
Pakobbix 2023-03-02 14:02:08 +01:00
parent 0554803ef3
commit cfc97be5ca

View File

@ -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