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 @@ -63,7 +63,7 @@ function getChecksum() {
6363
6464function createMetadataFile() {
6565 local fileData=$( cat $SOURCEFILE )
66- echo -e " [" default" ]\nversion = $VERSION .${securityversion} \n" >> $METADATAFILE
66+ echo -e " [" default" ]\nversion = $VERSION .${securityversion} \n" >> " $METADATAFILE "
6767 for template in " ${templates[@]} "
6868 do
6969 section=" ${template%%:* } "
@@ -76,7 +76,7 @@ function createMetadataFile() {
7676 templatename=" systemvm-${sectionHv% .* } -${VERSION} -${arch} "
7777 checksum=$( getChecksum " $fileData " " $VERSION -${arch} -$hvName " )
7878 filename=$( echo ${downloadurl##* ' /' } )
79- echo -e " [" $section " ]\ntemplatename = $templatename \nchecksum = $checksum \ndownloadurl = $downloadurl \nfilename = $filename \narch = $arch \nguestos = $guestos \n" >> $METADATAFILE
79+ echo -e " [" $section " ]\ntemplatename = $templatename \nchecksum = $checksum \ndownloadurl = $downloadurl \nfilename = $filename \narch = $arch \nguestos = $guestos \n" >> " $METADATAFILE "
8080 done
8181}
8282
@@ -92,7 +92,7 @@ templates=( "kvm-x86_64:https://download.cloudstack.org/systemvm/${CS_VERSION}/s
9292
9393PARENTPATH=" $( cd -- " $( dirname " $0 " ) " > /dev/null 2>&1 ; pwd -P ) /dist/systemvm-templates/"
9494mkdir -p $PARENTPATH
95- METADATAFILE=${PARENTPATH} " metadata.ini"
96- echo > $METADATAFILE
95+ METADATAFILE=" ${PARENTPATH} metadata.ini"
96+ echo > " $METADATAFILE "
9797SOURCEFILE=${PARENTPATH} ' md5sum.txt'
9898createMetadataFile
You can’t perform that action at this time.
0 commit comments