Skip to content

Commit

Permalink
Fixes Nyr#5
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyr committed May 19, 2020
1 parent ff0cdfa commit 55bdb64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# Copyright (c) 2020 Nyr. Released under the MIT License.


# Discard stdin. Needed when running from an one-liner which included a newline
read -N 999999999 -t 0.001

# Detect Debian users running the script with "sh" instead of bash
if readlink /proc/$$/exe | grep -q "dash"; then
echo "This script needs to be run with bash, not sh"
Expand Down

0 comments on commit 55bdb64

Please sign in to comment.