File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ function getChecksum() {
5454
5555function createMetadataFile() {
5656 local fileData=$( cat $SOURCEFILE )
57- echo -e " [" default" ]\nversion = $VERSION .${securityversion} \n" >> $METADATAFILE
57+ echo -e " [" default" ]\nversion = $VERSION .${securityversion} \n" >> " $METADATAFILE "
5858 for template in " ${templates[@]} "
5959 do
6060 section=" ${template%%:* } "
@@ -64,7 +64,7 @@ function createMetadataFile() {
6464 checksum=$( getChecksum " $fileData " " $VERSION -$hvName " )
6565 downloadurl=" ${template#*: } "
6666 filename=$( echo ${downloadurl##* ' /' } )
67- echo -e " [" $section " ]\ntemplatename = $templatename \nchecksum = $checksum \ndownloadurl = $downloadurl \nfilename = $filename \n" >> $METADATAFILE
67+ echo -e " [" $section " ]\ntemplatename = $templatename \nchecksum = $checksum \ndownloadurl = $downloadurl \nfilename = $filename \n" >> " $METADATAFILE "
6868 done
6969}
7070
@@ -79,7 +79,7 @@ templates=( "kvm:https://download.cloudstack.org/systemvm/${CS_VERSION}/systemvm
7979
8080PARENTPATH=" $( cd -- " $( dirname " $0 " ) " > /dev/null 2>&1 ; pwd -P ) /dist/systemvm-templates/"
8181mkdir -p $PARENTPATH
82- METADATAFILE=${PARENTPATH} " metadata.ini"
83- echo > $METADATAFILE
82+ METADATAFILE=" ${PARENTPATH} metadata.ini"
83+ echo > " $METADATAFILE "
8484SOURCEFILE=${PARENTPATH} ' md5sum.txt'
8585createMetadataFile
You can’t perform that action at this time.
0 commit comments