From df25873e77ed3ffb60a2e5a313749f9ef47b0e4c Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Sat, 9 Jan 2021 05:40:46 +0000 Subject: [PATCH] Fix no password prompt --- debi.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debi.sh b/debi.sh index 22ff777..9b5dc89 100755 --- a/debi.sh +++ b/debi.sh @@ -2,6 +2,9 @@ set -euo pipefail +# Discard stdin. Needed when running from an one-liner which includes a newline +read -r -N 999999 -t 0.001 + err() { echo "Error: $1." 1>&2 exit 1