Skip to content

Commit

Permalink
Removing the check to see if the file exists - this is done by the tr…
Browse files Browse the repository at this point in the history
…ansicc utility already so we can just return the response.
  • Loading branch information
jpederson committed Jun 15, 2014
1 parent 2d50e72 commit 7b63c6b
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions transicc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@


var spawn = require( "child_process" ).spawn,
fs = require( "fs" );
var spawn = require( "child_process" ).spawn;


// new switch in 1.1.2 to replace symlinks for shortcut profiles
Expand Down Expand Up @@ -45,18 +44,6 @@ module.exports = function( input_profile, output_profile, args, callback ) {
// create an array of arguments we'll pass to the transicc command
var cmd_arg = [];

// error if input profile is invalid.
if ( !fs.existsSync( profile_path( input_profile ) ) ) {
callback( new Error('Invalid input profile.'), null );
return;
}

// error if output profile is invalid.
if ( !fs.existsSync( profile_path( output_profile ) ) ) {
callback( new Error('Invalid output profile.'), null );
return;
}

// add the input profile
cmd_arg.push( profile_path( input_profile ) );

Expand All @@ -76,6 +63,7 @@ module.exports = function( input_profile, output_profile, args, callback ) {
cmd_arg.push( args[i] );
}


// spawn the command and create an empty response
var cmd = spawn( "./shell/"+args.length+".sh", cmd_arg, {
cwd: __dirname
Expand Down

0 comments on commit 7b63c6b

Please sign in to comment.