[projects/pld-builder.new] Revert "unset CDPATH instead"

baggins baggins at pld-linux.org
Sun Jun 9 17:46:56 CEST 2013


commit cd5a5be00460b418625f74cf556335ea1e0afea1
Author: Jan Rękorajski <baggins at pld-linux.org>
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.

 client/rebuild-th-kernel.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/client/rebuild-th-kernel.sh b/client/rebuild-th-kernel.sh
index 7c785e5..8c28a24 100755
--- a/client/rebuild-th-kernel.sh
+++ b/client/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/projects/pld-builder.new.git/commitdiff/cd5a5be00460b418625f74cf556335ea1e0afea1



More information about the pld-cvs-commit mailing list