From 6550a2598c2f1ca01bd90d27c1d991509331e0da Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 5 Oct 2008 03:46:08 +0000 Subject: Redirect pushd and popd output to /dev/null when appropriate. svn path=/main/trunk/; revision=11625 --- bin/doins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/doins') diff --git a/bin/doins b/bin/doins index 4b1bbc229..11025250d 100755 --- a/bin/doins +++ b/bin/doins @@ -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)) -- cgit v1.2.3-1-g7c22