ソースを参照

Fix no password prompt

Bohan Yang 5 年 前
コミット
df25873e77
1 ファイル変更3 行追加0 行削除
  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