commit bb343a807379d62e16ab2290af489e7f622f7894
Author: Elan Ruusamäe <[email protected]>
Date: Mon Apr 1 12:29:50 2013 +0300
unset CDPATH instead
client/rebuild-th-kernel.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/client/rebuild-th-kernel.sh b/client/rebuild-th-kernel.sh
index c8a2014..0d711cb 100755
--- a/client/rebuild-th-kernel.sh
+++ b/client/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/projects/pld-builder.new.git/commitdiff/1e79cfe84dd6bfd697b050a1170f634b3b1801f2
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit