changeset 4660:a454b7c72f51

6580512 nightly should use dirname instead of ../
author dm120769
date Sat, 14 Jul 2007 19:40:41 -0700
parents c3ede552abd1
children 44ad046d354c
files usr/src/tools/scripts/nightly.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/tools/scripts/nightly.sh	Fri Jul 13 15:37:03 2007 -0700
+++ b/usr/src/tools/scripts/nightly.sh	Sat Jul 14 19:40:41 2007 -0700
@@ -555,7 +555,7 @@
 			X=${CPIODIR}
 		fi
 		echo "Archive_directory: ${X}" >${TMPDIR}/f
-		cp ${TMPDIR}/f ${CPIODIR}/../../.${MACH}_wgtrun
+		cp ${TMPDIR}/f $(dirname $(dirname ${CPIODIR}))/.${MACH}_wgtrun
 		rm -f ${TMPDIR}/f
 
 	else