From b4892e3e69bf7779856013853899b7d09f710059 Mon Sep 17 00:00:00 2001 From: ericagar Date: Fri, 19 Aug 2011 21:29:56 +0000 Subject: [PATCH] Fix for defect 3394779: Fix bashisms in syncfiles git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10330 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/syncfiles | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/syncfiles b/xCAT/postscripts/syncfiles index 0c61d5923..56022f33a 100644 --- a/xCAT/postscripts/syncfiles +++ b/xCAT/postscripts/syncfiles @@ -8,14 +8,14 @@ ##################################################### # do nothing when UPDATENODE=1 because it is done from the top down -if [[ $UPDATENODE -eq 1 ]]; then +if [ -n "$UPDATENODE" ] && [ $UPDATENODE -eq 1 ]; then echo " Did not sync any files. Use updatenode -F to sync the files." exit 0 fi #do nothing id there is no sync file template for the node -if [[ $NOSYNCFILES -eq 1 ]]; then +if [ -n "$NOSYNCFILES" ] && [ $NOSYNCFILES -eq 1 ]; then echo " Did not sync any files." logger -t xCAT "$0: there is no sync file template for the node" exit 0