瀏覽代碼

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
 set -euo pipefail
 
 
+# Discard stdin. Needed when running from an one-liner which includes a newline
+read -r -N 999999 -t 0.001
+
 err() {
 err() {
     echo "Error: $1." 1>&2
     echo "Error: $1." 1>&2
     exit 1
     exit 1