浏览代码

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