Skip to content

Instantly share code, notes, and snippets.

@grigorye
Created February 9, 2016 10:17
Show Gist options
  • Save grigorye/25dbfe64e6d91db21817 to your computer and use it in GitHub Desktop.
Save grigorye/25dbfe64e6d91db21817 to your computer and use it in GitHub Desktop.
--- orig/symbolicatecrash 2015-11-12 01:00:25.000000000 +0100
+++ new/symbolicatecrash 2016-02-09 11:12:09.000000000 +0100
@@ -238,7 +238,7 @@
}
#Find any naked executables
- $cmd = "mdfind \"kMDItemContentType == public.unix-executable && kMDItemDisplayName == '$exec_name'\"";
+ $cmd = "mdfind \"( kMDItemContentType == public.unix-executable || kMDItemContentType == public.data ) && ( kMDItemDisplayName == '$exec_name' )\"";
print STDERR "Running $cmd\n" if $opt{v};
foreach my $exec_file (split(/\n/, `$cmd`)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment