mirror of
https://github.com/hwdsl2/wireguard-install.git
synced 2024-09-22 00:00:55 +02:00
Fixes #5
This commit is contained in:
parent
ff0cdfa17f
commit
55bdb64030
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user