From 0a187284ca9800a8c1d8cedb14acad3e1c8c2dbc Mon Sep 17 00:00:00 2001 From: mellor Date: Tue, 25 May 2010 18:37:03 +0000 Subject: [PATCH] try again... hpc integration - add some checks for error conditions git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-IBMhpc/share/xcat/IBMhpc/compilers/compilers_license | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/compilers_license b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/compilers_license index 15667baed..6fc090ec3 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/compilers_license +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/compilers/compilers_license @@ -27,8 +27,12 @@ if [ $OS != "AIX" ]; then if [ $NODESETSTATE == "genimage" ]; then # Being called from .postinstall script # Assume we are on the same machine - echo 1 | chroot $installroot /$vacpp_script - echo 1 | chroot $installroot /$xlf_script + if [ -n "$vacpp_script" ] ; then + echo 1 | chroot $installroot /$vacpp_script + fi + if [ -n "$xlf_script" ] ; then + echo 1 | chroot $installroot /$xlf_script + fi fi fi