From 7aabf03e2c6ec6d36659086b4a6fa6f776c4bfdf Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 16 Jul 2012 16:37:42 +0000 Subject: [PATCH] add comments to explain git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13301 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/xdcpappend.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/share/xcat/scripts/xdcpappend.sh b/xCAT-server/share/xcat/scripts/xdcpappend.sh index 94b66fd25..49aba4770 100755 --- a/xCAT-server/share/xcat/scripts/xdcpappend.sh +++ b/xCAT-server/share/xcat/scripts/xdcpappend.sh @@ -26,9 +26,11 @@ for i in $*; do filebackup="$nodesyncfiledirorg$orgfile" # now do the work mkdir -p $filebackupdir + # if there does not exist an original backup, make one if [ ! -f "$filebackup" ]; then cp -p $orgfile $filebackup fi + # copy original backup to the local file and append cp -p $filebackup $orgfile cat $appendfile >> $orgfile