From 55bdb64030291ccfccdb3d1280a33f0e45153b2b Mon Sep 17 00:00:00 2001 From: Nyr Date: Tue, 19 May 2020 14:29:32 +0200 Subject: [PATCH] Fixes #5 --- wireguard-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wireguard-install.sh b/wireguard-install.sh index cde1a5b..d47e6f4 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -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"