From 70f53f46aba6e0193f61a6e3bf9dbbaa3b9908e0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 19 Dec 2010 19:33:26 -0800 Subject: Substitute bash builtin >> for touch command. It should be faster to use the bash builtin, and also allows us to avoid issues with touch breakage (like in bug #348640). --- bin/ebuild-helpers/ecompress | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/ebuild-helpers/ecompress') diff --git a/bin/ebuild-helpers/ecompress b/bin/ebuild-helpers/ecompress index ed19ffb1b..de81b4484 100755 --- a/bin/ebuild-helpers/ecompress +++ b/bin/ebuild-helpers/ecompress @@ -95,8 +95,11 @@ case $1 in ;; --queue) shift - touch "${@/%/.ecompress.file}" - ret=$? + ret=0 + for x in "${@/%/.ecompress.file}" ; do + >> "$x" + ((ret|=$?)) + done [[ $ret -ne 0 ]] && helpers_die "${0##*/} failed" exit $ret ;; -- cgit v1.2.3-1-g7c22