]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
unset CDPATH instead
authorElan Ruusamäe <glen@delfi.ee>
Mon, 1 Apr 2013 09:29:50 +0000 (12:29 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 1 Apr 2013 09:29:50 +0000 (12:29 +0300)
client/rebuild-th-kernel.sh

index c8a2014141931d98bcc592823abb635c0ed0746c..0d711cbe5b7dbe595fbe89ada83b89ab6fea131f 100755 (executable)
@@ -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)
This page took 0.733792 seconds and 4 git commands to generate.