This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Modified WireGuard installer with GitHub backup integration | |
| # Based on https://github.com/Nyr/wireguard-install | |
| # Copyright (c) 2020 Nyr. Released under the MIT License. | |
| # Detect Debian users running the script with "sh" instead of bash | |
| if readlink /proc/$$/exe | grep -q "dash"; then | |
| echo 'This installer needs to be run with "bash", not "sh".' | |
| exit |