Browse Source

Fix no password prompt

Bohan Yang 5 years ago
parent
commit
df25873e77
1 changed files with 3 additions and 0 deletions
  1. 3 0
      debi.sh

+ 3 - 0
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