2nd attempt to fix JIRA SPE-22 (wrong file export on MAC)

This commit is contained in:
Enrico Turri 2018-02-20 11:10:54 +01:00
parent eeada56c1f
commit e13a9adff2

View file

@ -1624,7 +1624,12 @@ sub _get_export_file {
} }
elsif ($format eq 'AMF') elsif ($format eq 'AMF')
{ {
if ($^O eq 'MacOS') {
# It seems that MacOS does not like double extension
$suffix = '.amf';
} else {
$suffix = '.zip.amf'; $suffix = '.zip.amf';
}
$wildcard = 'amf'; $wildcard = 'amf';
} }
elsif ($format eq '3MF') elsif ($format eq '3MF')