Permalink
Browse files

Fixes rename.file outputdir bug

  • Loading branch information...
1 parent d7801d9 commit 26df7fbd8bcb706b161717d33210b1d3aebb80d7 @mothur-westcott mothur-westcott committed Feb 2, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/commands/renamefilecommand.cpp
@@ -469,8 +469,8 @@ RenameFileCommand::RenameFileCommand(string option) {
if (outputfile == "not found") {
if (!mothurGenerated) { m->mothurOut("[ERROR]: you must enter an output file name"); m->mothurOutEndLine(); abort=true; }
outputfile = "";
- }else { mothurGenerated=false; }
- if (outputDir != "") { outputfile = outputDir + m->getSimpleName(outputfile); }
+ }else { mothurGenerated=false; if (outputDir != "") { outputfile = outputDir + m->getSimpleName(outputfile); } }
+
if ((!mothurGenerated) && (numFiles > 1)) {
m->mothurOut("[ERROR]: You cannot use more than one file parameter unless mothur is generating the output filenames for you.\n"); abort= true;

0 comments on commit 26df7fb

Please sign in to comment.