X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=blobdiff_plain;f=scripts%2Farchival%2Fshared_snarfer.pl;fp=scripts%2Farchival%2Fshared_snarfer.pl;h=7b2b7ecdcc0d03eda2d0ef9f2bcd48fa9565e9cf;hp=91ee6d75a83c9f1f32183613a8b6c8517470ad92;hb=de0da7f2f7958d4ba652ff2ef5c79991700141ac;hpb=a4c99c6006b3aa20b5f65f02c2d30db7e790083a diff --git a/scripts/archival/shared_snarfer.pl b/scripts/archival/shared_snarfer.pl index 91ee6d75..7b2b7ecd 100644 --- a/scripts/archival/shared_snarfer.pl +++ b/scripts/archival/shared_snarfer.pl @@ -57,7 +57,12 @@ for (local($i) = 0; $i < scalar(@junk_file_list); $i++) { # generic versions work on sane OSes. $find_tool = which('find'); -$tar_tool = which('tar'); +# for mac, try to match gnu tar first. +$tar_tool = which('gtar'); +if ( ! -f "$tar_tool" ) { + # fall back to regular tar. + $tar_tool = which('tar'); +} #print "find tool: $find_tool\n"; #print "tar tool: $tar_tool\n";