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