Skip to content
Snippets Groups Projects
Commit 0e62bbac authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Now allows specification of a start directory on the cmdline.

parent d09136f0
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,11 @@ $SIG{'ALRM'} = "alarmhandler";
# mounted that's not on campus or add relevant ! -fstype nfs or similar.
#
open(FIND,"find / -type f \\( -name \"*.EXE\" -o -name \"*.exe\" -o -name \"*.scr\" -o -name \"*.SCR\" \\) -print|");
$startdir = '/';
$startdir = $ARGV[0] if ($ARGV[0] && (-d $ARGV[0]));
open(FIND,"find $startdir -type f \\( -name \"*.EXE\" -o -name \"*.exe\" -o -name \"*.scr\" -o -name \"*.SCR\" \\) -print|");
while ($exe=<FIND>) {
chop($exe);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment