Skip to content

Commit

Permalink
Fix typo in function name (#7982)
Browse files Browse the repository at this point in the history
no issue
- checkDirectoryExistance -> checkDirectoryExistence
  • Loading branch information
javorszky authored and kevinansfield committed Feb 11, 2017
1 parent 196d6d0 commit a341bbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gulpfile.js
Expand Up @@ -19,7 +19,7 @@ var gulp = require('gulp-help')(require('gulp'), {hideEmpty: true
nodemonServerInit,
filterParams,
getGitCommand,
checkDirectoryExistance,
checkDirectoryExistence,
ember;

// paramConfig is used to store constant values to check against
Expand Down Expand Up @@ -157,7 +157,7 @@ getGitCommand = function (branchToCheckOut, repo) {

// Checks if a directory exists and returns true if so. This is needed to
// check, if the submodule directories exist.
checkDirectoryExistance = function (directory) {
checkDirectoryExistence = function (directory) {
try {
return fs.statSync(directory).isDirectory();
} catch (e) {
Expand Down Expand Up @@ -362,8 +362,8 @@ gulp.task('submodules', 'Updates Ghost submodules, if submodule directory is not
casperBranch = gitBranches.casper.branch || undefined,
force = (argv.force || argv.f) || undefined;

if ((!checkDirectoryExistance(paramConfig.admin.path) || adminBranch === 'master') ||
(!checkDirectoryExistance(paramConfig.casper.path) || casperBranch === 'master') || force) {
if ((!checkDirectoryExistence(paramConfig.admin.path) || adminBranch === 'master') ||
(!checkDirectoryExistence(paramConfig.casper.path) || casperBranch === 'master') || force) {
exec('gulp sm:install', function (err, stdout, stderr) {
console.info(chalk.cyan('Updating Ghost submodules 🛠 ...'));
if (stderr) {console.info(chalk.red(stderr));}
Expand Down

0 comments on commit a341bbd

Please sign in to comment.