File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ function getChecksum() {
6262}
6363
6464function createMetadataFile() {
65- local fileData=$( cat $SOURCEFILE )
66- echo -e " [" default" ]\nversion = $VERSION .${securityversion} \n" >> $METADATAFILE
65+ local fileData=$( cat " $SOURCEFILE " )
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
@@ -91,8 +91,8 @@ templates=( "kvm-x86_64:https://download.cloudstack.org/systemvm/${CS_VERSION}/s
9191 " ovm3:https://download.cloudstack.org/systemvm/$CS_VERSION /systemvmtemplate-$VERSION -x86_64-ovm.raw.bz2" )
9292
9393PARENTPATH=" $( cd -- " $( dirname " $0 " ) " > /dev/null 2>&1 ; pwd -P ) /dist/systemvm-templates/"
94- mkdir -p $PARENTPATH
95- METADATAFILE=${PARENTPATH} " metadata.ini"
96- echo > $METADATAFILE
97- SOURCEFILE=${PARENTPATH} ' md5sum.txt'
94+ mkdir -p " $PARENTPATH "
95+ METADATAFILE=" ${PARENTPATH} metadata.ini"
96+ echo > " $METADATAFILE "
97+ SOURCEFILE=" ${PARENTPATH} md5sum.txt"
9898createMetadataFile
You can’t perform that action at this time.
0 commit comments