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:
parent
06c22411b4
commit
7aabf03e2c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user