Skip to content

Commit

Permalink
Fixs bug with Linux version make.file
Browse files Browse the repository at this point in the history
find system command requires maxdepth to come before name option.  Mac and Windows don't care.
  • Loading branch information
mothur-westcott committed Jul 27, 2015
1 parent fa82f27 commit cd70dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/commands/makefilecommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ int MakeFileCommand::execute(){

//find all .fastq files
string tempFile = inputDir + "fileList.temp";
string findCommand = "find \"" + inputDir.substr(0, inputDir.length()-1) + "\" -name \"*." + typeFile + "\" -maxdepth 1 > \"" + tempFile + "\"";
string findCommand = "find \"" + inputDir.substr(0, inputDir.length()-1) + "\" -maxdepth 1 -name \"*." + typeFile + "\" > \"" + tempFile + "\"";
system(findCommand.c_str());

//read in list of files
Expand Down

0 comments on commit cd70dde

Please sign in to comment.