Skip to content

Commit

Permalink
fix local version undefined output. closes #737
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Oct 22, 2014
1 parent af14e2d commit b95773b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gulp.js
Expand Up @@ -75,7 +75,7 @@ cli.launch({
function handleArguments(env) {
if (versionFlag && tasks.length === 0) {
gutil.log('CLI version', cliPackage.version);
if (env.modulePackage) {
if (env.modulePackage && typeof env.modulePackage.version !== 'undefined') {
gutil.log('Local version', env.modulePackage.version);
}
process.exit(0);
Expand Down

0 comments on commit b95773b

Please sign in to comment.