Ignore:
Timestamp:
Feb 16, 2019, 6:25:06 PM (6 years ago)
Author:
s10k
Message:

Added version 2.0e (bugfix in patch file for paths with apostrophes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • s10k/XmlTools/xmlpatch.cpp

    r1073 r1111  
    374374            command=GlobalVars::AppExecutable;
    375375
    376             // Append files if forced to
    377             if(!this->forceTargetFilesWildcard.isEmpty()){
    378                 command+=" --files '"+this->forceTargetFilesWildcard+"' ";
    379             }
    380 
    381376            command+=" "+getPatchParameterValue(line,"Options");
    382377
     
    392387            command.replace("'","\""); //replace apostrophe by quotes, to avoid problems
    393388            command.replace("\"\"","'"); // this allow to use '' as ' ('' is transformed in "" and then in ')
     389
     390            // Append files if forced to
     391
     392            // This is added at the end so the apostrophe isn't done here (the path can contain it)
     393            if(!this->forceTargetFilesWildcard.isEmpty()){
     394                command+=" --files \""+this->forceTargetFilesWildcard+"\" ";
     395            }
    394396
    395397            executeCommandOperation(command);
Note: See TracChangeset for help on using the changeset viewer.