diff --git a/wiremac.sh b/wiremac.sh index 2f560de..7b32f76 100644 --- a/wiremac.sh +++ b/wiremac.sh @@ -4,8 +4,16 @@ 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/ sudo chown -R root:wheel /Applications/WireGuard.app