From 121b4cb59c54dd8d8a8d66070683534e9b173fa1 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT-server/share/xcat/scripts/xdcpappend.sh --- xCAT-server/share/xcat/scripts/xdcpappend.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/scripts/xdcpappend.sh b/xCAT-server/share/xcat/scripts/xdcpappend.sh index 49aba4770..9e4e83b97 100755 --- a/xCAT-server/share/xcat/scripts/xdcpappend.sh +++ b/xCAT-server/share/xcat/scripts/xdcpappend.sh @@ -2,7 +2,7 @@ # This script is used by the xdcp APPEND: function to perform the # append operation on the nodes. #First parm is nodesyncfiledir, then after that are the lines for the -#APPEND clause put in the format +#APPEND clause put in the format #appendfile1:orgfile1 appendfile2:orgfile2..... # nodesyncfiledir=$1 @@ -20,12 +20,12 @@ for i in $*; do appendfile="$nodesyncfiledirappend$appendfilebase" # get the file to append to orgfile=`echo "$i"|cut -d ':' -f 2` - # get the directory to backup the original file to append + # get the directory to backup the original file to append orgfiledir=`dirname $orgfile` filebackupdir="$nodesyncfiledirorg$orgfiledir" filebackup="$nodesyncfiledirorg$orgfile" # now do the work - mkdir -p $filebackupdir + mkdir -p $filebackupdir # if there does not exist an original backup, make one if [ ! -f "$filebackup" ]; then cp -p $orgfile $filebackup