[atoms] prevent unzip of spurious __MACOSX under Darwin
[scilab.git] / scilab / modules / atoms / macros / atoms_internals / atomsExtract.sci
index c3e3803..1778eea 100644 (file)
@@ -85,6 +85,10 @@ function dir_created = atomsExtract(archive_in,dir_out)
 
         extract_cmd = extract_cmd + " -q -o """ + archive_in + """ -d """ + pathconvert(dir_out,%F) +"""";
 
+        if getos() == "Darwin"
+            extract_cmd = extract_cmd + " -x __MACOSX/*"
+        end
+
     end
 
     [rep,stat,err] = unix_g(extract_cmd);