diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-10-05 03:46:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-10-05 03:46:08 +0000 |
commit | 6550a2598c2f1ca01bd90d27c1d991509331e0da (patch) | |
tree | 4bdbc5b79f31f2a5f043d70d4369f84308c268f3 | |
parent | affa9cfae9633176a14e624dfeda209e6bc50b46 (diff) | |
download | portage-6550a2598c2f1ca01bd90d27c1d991509331e0da.tar.gz portage-6550a2598c2f1ca01bd90d27c1d991509331e0da.tar.bz2 portage-6550a2598c2f1ca01bd90d27c1d991509331e0da.zip |
Redirect pushd and popd output to /dev/null when appropriate.
svn path=/main/trunk/; revision=11625
-rwxr-xr-x | bin/doins | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -68,13 +68,13 @@ for x in "$@" ; do # Follow any symlinks recursively until we've got # a normal directory for 'find' to traverse. while [ -L "$x" ] ; do - pushd "$(readlink "$x")" + pushd "$(readlink "$x")" >/dev/null x=${PWD##*/} - pushd "${PWD%/*}" + pushd "${PWD%/*}" >/dev/null done find "$x" -type d -exec dodir "${INSDESTTREE}/{}" \; find "$x" \( -type f -or -type l \) -print0 | _xdoins - while popd >/dev/null ; do true ; done + while popd >/dev/null 2>&1 ; do true ; done ((++success)) else _doins "${x}" && ((++success)) |