summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwift Geek2013-12-29 00:22:48 +0000
committerKyle Keen2013-12-29 00:22:48 +0000
commit06e38bd4bdf0ec96a7ed2954c20c2b9d77b6b548 (patch)
treec35c5e663dcccb8339c382f66c726d4bc519b9d2
parente2dfbf262f3f1bd0e3e2fcbc3f5977572be37c72 (diff)
downloadaur-06e38bd4bdf0ec96a7ed2954c20c2b9d77b6b548.tar.gz
Import from pkgbuild.com service
-rw-r--r--PKGBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cd81960ad820..cb70db1de7d4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -56,7 +56,8 @@ prepare() {
# TODO: ASK for disabling checks
#------------------------------------------------------
# Welcome new interactive config overlord
- tty -s && {
+
+ [[ "$(cat /proc/$$/cmdline)" != *noconfirm* ]] && tty -s && {
countdown 3 & countdown_pid=$!
read -s -n 1 -t 3 ikey || true
kill -s SIGHUP $countdown_pid > /dev/null || true # Any key below 1sec fix