rpms/kernel/FC-5/scripts rebase-xen-kernel.sh,1.2,1.3
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Nov 21 16:54:04 UTC 2006
Author: quintela
Update of /cvs/dist/rpms/kernel/FC-5/scripts
In directory cvs.devel.redhat.com:/tmp/cvs-serv12280/scripts
Modified Files:
rebase-xen-kernel.sh
Log Message:
jim fix to cd printing the path when you are in a subshell
Index: rebase-xen-kernel.sh
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-5/scripts/rebase-xen-kernel.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- rebase-xen-kernel.sh 21 Nov 2006 12:04:30 -0000 1.2
+++ rebase-xen-kernel.sh 21 Nov 2006 16:54:02 -0000 1.3
@@ -6,6 +6,9 @@
# it needs linux-2.6 linux-2.6-xen and linux-2.6-xen-fedora on the current directory
# with the right changesets on them.
+# Unset CDPATH, to ensure that the cd-within-backquotes produces no output.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
set -x
# remove previous patch if it exist
@@ -16,7 +19,7 @@
echo "$repo directory don't exist";
exit 1
else
- echo " * $repo `cd $repo >/dev/null; (hg tip | grep 'changeset:')`" >> linux-2.6-xen.patch
+ echo " * $repo `cd $repo ; (hg tip | grep 'changeset:')`" >> linux-2.6-xen.patch
fi
done
More information about the fedora-cvs-commits
mailing list