Don't "open -a Graphviz $opt_dot" unless on OSX
Tim Bunce [Fri, 28 Sep 2012 19:16:53 +0000 (04:16 +0900)]
bin/dmemtree.pl

index 4796770..a529bbd 100755 (executable)
@@ -300,7 +300,7 @@ if ($opt_verbose) {
 if ($dot_fh) {
     print $dot_fh "}\n";
     close $dot_fh;
-    system("open -a Graphviz $opt_dot");
+    system("open -a Graphviz $opt_dot") if $^O eq 'darwin'; # OSX
 }
 
 $dbh->commit if $dbh;