Skip to content
Browse files

Merge pull request #57 from scottf-tvw/master

Move -ss to before -i
  • Loading branch information...
2 parents c62e500 + 840da20 commit aff328eca122e9914a208c5b6736ce6fab5e565b @tieleman tieleman committed Feb 22, 2016
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/job.js
View
7 lib/job.js
@@ -257,7 +257,12 @@ var Job = JobUtils.getDatabase().define('Job', {
if (config['use_scratch_dir'] == true) {
tmpFile = config['scratch_dir'] + path.sep + this.internalId + extension;
}
-
+ var ssIndex = args.indexOf('-ss');
+ if (ssIndex > -1) {
+ var ssValueTemp = args[ssIndex + 1];
+ args.splice(ssIndex, 2);
+ Array.prototype.unshift.apply(args, ['-ss', ssValueTemp]);
+ }
args.push(tmpFile);
job.tmpFile = tmpFile;

0 comments on commit aff328e

Please sign in to comment.
Something went wrong with that request. Please try again.