[packages/rpm-build-tools/merge-pld-builder-client: 2348/2675] unset CDPATH instead

glen glen at pld-linux.org
Mon Dec 19 22:04:42 CET 2016


commit 3079748d8ba32a3ce116b0c8888211cecbc07813
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 1 12:29:50 2013 +0300

    unset CDPATH instead

 rebuild-th-kernel.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/rebuild-th-kernel.sh b/rebuild-th-kernel.sh
index c8a2014..0d711cb 100755
--- a/rebuild-th-kernel.sh
+++ b/rebuild-th-kernel.sh
@@ -48,7 +48,7 @@ autotag() {
 		fi
 		out=$(git for-each-ref $ref --sort=-authordate --format='%(refname:short)' --count=1)
 		echo "$spec:$out"
-		cd - >/dev/null
+		cd -
 	done
 }
 
@@ -73,6 +73,10 @@ 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



More information about the pld-cvs-commit mailing list