if specifying a file for checksum, do not touch string case
This commit is contained in:
parent
756f4d7e1a
commit
243cfbf8a7
@ -119,7 +119,10 @@ func (self *Builder) Prepare(raws ...interface{}) (params []string, warns []stri
|
|||||||
|
|
||||||
if self.config.ISOName == "" {
|
if self.config.ISOName == "" {
|
||||||
// If ISO name is not specified, assume a URL and checksum has been provided.
|
// If ISO name is not specified, assume a URL and checksum has been provided.
|
||||||
|
// If checksum is provided and starts with file:, do not change to lower case
|
||||||
|
if !strings.HasPrefix(strings.ToLower(self.config.ISOChecksum), "file:") {
|
||||||
self.config.ISOChecksum = strings.ToLower(self.config.ISOChecksum)
|
self.config.ISOChecksum = strings.ToLower(self.config.ISOChecksum)
|
||||||
|
}
|
||||||
|
|
||||||
if len(self.config.ISOUrls) == 0 {
|
if len(self.config.ISOUrls) == 0 {
|
||||||
if self.config.ISOUrl == "" {
|
if self.config.ISOUrl == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user