Skip to content

Commit

Permalink
package => packageName
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds committed Feb 11, 2016
1 parent 55831a9 commit 415a0f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/commands/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ var path = require("path");
var fs = require("fs");

module.exports = function (config, cli) {
var package = cli.input[1];
var packageName = cli.input[1];
var filePath = "packages";

if (package) {
var pkgLoc = path.join(config.packagesLoc, package, "package.json");
if (packageName) {
var pkgLoc = path.join(config.packagesLoc, packageName, "package.json");

if (!fs.existsSync(pkgLoc)) {
console.log(chalk.red("Package '" + package + "' does not exist."));
console.log(chalk.red("Package '" + packageName + "' does not exist."));
process.exit(1);
}

filePath += "/" + package;
filePath += "/" + packageName;
}

var diff = child.spawn("git", ["diff", "--color", filePath]);
Expand Down

0 comments on commit 415a0f3

Please sign in to comment.