commit 009ee73e76e8052f67937633c325b38d9270d660
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Jun 9 17:46:33 2013 +0200

    Revert "unset CDPATH instead"
    
    This reverts commit bb343a807379d62e16ab2290af489e7f622f7894.
    
    Just redirect to /dev/null, it's shell independent and always works.

 rebuild-th-kernel.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/rebuild-th-kernel.sh b/rebuild-th-kernel.sh
index 7c785e5..8c28a24 100755
--- a/rebuild-th-kernel.sh
+++ b/rebuild-th-kernel.sh
@@ -58,7 +58,7 @@ autotag() {
                fi
                out=$(git for-each-ref $ref --sort=-authordate 
--format='%(refname:short)' --count=1)
                echo "$spec:$out"
-               cd -
+               cd - >/dev/null
        done
 }
 
@@ -83,10 +83,6 @@ get_last_tags() {
        done
 }
 
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
 cd $rpmdir
 case "$1" in
        head)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to