summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-07-15 19:26:55 +0000
committerMike Frysinger <vapier@gentoo.org>2006-07-15 19:26:55 +0000
commitf71393286996fe72980fde960b18ef3e0df3a598 (patch)
tree483d4dfa4f953863c4bebc7818f847b63d8a224c /eclass
parentRemove ebuilds earlier than 1.2.10 for security cleanup bug 140530, reported ... (diff)
downloadhistorical-f71393286996fe72980fde960b18ef3e0df3a598.tar.gz
historical-f71393286996fe72980fde960b18ef3e0df3a598.tar.bz2
historical-f71393286996fe72980fde960b18ef3e0df3a598.zip
drop [ -t ] check from ebeep/epause #139783
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass8
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index df56d8d81122..803c5d11e14d 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.244 2006/07/06 23:53:57 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.245 2006/07/15 19:26:55 vapier Exp $
#
# This eclass is for general purpose functions that most ebuilds
# have to implement themselves.
@@ -19,9 +19,7 @@ DESCRIPTION="Based on the ${ECLASS} eclass"
# must be an integer greater than zero.
# Bug 62950, Ciaran McCreesh <ciaranm@gentoo.org> (05 Sep 2004)
epause() {
- if [ -z "$EPAUSE_IGNORE" ] && [ -t 1 ] ; then
- sleep ${1:-5}
- fi
+ [[ -z ${EPAUSE_IGNORE} ]] && sleep ${1:-5}
}
# Beep the specified number of times (defaults to five). If our output
@@ -30,7 +28,7 @@ epause() {
# Bug 62950, Ciaran McCreesh <ciaranm@gentoo.org> (05 Sep 2004)
ebeep() {
local n
- if [ -z "$EBEEP_IGNORE" ] && [ -t 1 ] ; then
+ if [[ -z ${EBEEP_IGNORE} ]] ; then
for ((n=1 ; n <= ${1:-5} ; n++)) ; do
echo -ne "\a"
sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null