Redirect pushd and popd output to /dev/null when appropriate.
authorZac Medico <zmedico@gentoo.org>
Sun, 5 Oct 2008 03:46:08 +0000 (03:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 5 Oct 2008 03:46:08 +0000 (03:46 -0000)
svn path=/main/trunk/; revision=11625

bin/doins

index 4b1bbc22926282c6217870988bed0c8f1f58f76b..11025250deb85ccdef51cf6a031e3d76f31b61ed 100755 (executable)
--- 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))