When volumeName or dmgName contain spaces and there is a background image, runCmd fails because it is interpreted literally and spaces are not escaped. Because of this, hdiutil thought they were separate arguments.
This was only an issue with the runCmd routine -- commandLine was already handling it correctly.
When volumeName or dmgName contain spaces and there is a background image, runCmd fails because it is interpreted literally and spaces are not escaped. Because of this, hdiutil thought they were separate arguments.
This was only an issue with the runCmd routine -- commandLine was already handling it correctly.