summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorFrans Pop <fjp@debian.org>2008-05-18 22:41:10 (GMT)
committerFrans Pop <fjp@debian.org>2008-05-18 22:41:10 (GMT)
commita8dfc07a6839893491614536dccd166cf16c514d (patch)
tree4bec81e19213c1da11fae8340130f1bc46596bfb /functions
parentd8739cf5c7daf94b89bf6bc02165e44800df730f (diff)
downloaddebootstrap-a8dfc07a6839893491614536dccd166cf16c514d.zip
debootstrap-a8dfc07a6839893491614536dccd166cf16c514d.tar.gz
debootstrap-a8dfc07a6839893491614536dccd166cf16c514d.tar.bz2
Avoid "broken pipe" errors in bootstrap.log from the the smallyes function.
The errors themselves are inherent to how the function is used, so just suppress them. Patch from Joey Hess. Closes: #480560. r53420
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 2ed3e73..4c41ce1 100644
--- a/functions
+++ b/functions
@@ -2,7 +2,7 @@
smallyes() {
YES="${1-y}"
- while echo "$YES" ; do : ; done
+ while echo "$YES" 2>/dev/null ; do : ; done
}
############################################################### interaction