added Check if zip is available
This commit is contained in:
parent
3902dac546
commit
0554803ef3
12
wiremac.sh
12
wiremac.sh
@ -4,8 +4,16 @@
|
|||||||
|
|
||||||
wireguardzip="https://gitea.zephyre.one/Pakobbix/quick_wireguardtest/raw/branch/main/Wireguard.app.zip"
|
wireguardzip="https://gitea.zephyre.one/Pakobbix/quick_wireguardtest/raw/branch/main/Wireguard.app.zip"
|
||||||
|
|
||||||
curl -s $wireguardzip -O "Wireguard.app.zip"
|
if [ -f Wireguard.app.zip ]; then
|
||||||
|
echo "Zip bereits vorhanden, überspringe download"
|
||||||
|
else
|
||||||
|
if curl -s $wireguardzip -O "Wireguard.app.zip"; then
|
||||||
|
echo "Download beendet"
|
||||||
|
else
|
||||||
|
echo "Download hatte nicht funktioniert, bitte manuell herunterladen:"
|
||||||
|
echo "$wireguardzip"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
unzip WireGuard.app.zip -d /Applications/
|
unzip WireGuard.app.zip -d /Applications/
|
||||||
|
|
||||||
sudo chown -R root:wheel /Applications/WireGuard.app
|
sudo chown -R root:wheel /Applications/WireGuard.app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user