add comments to explain

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13301 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-07-16 16:37:42 +00:00
parent 06c22411b4
commit 7aabf03e2c

View File

@ -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