From a341bbde974b7c10ab91dfd9b39b739b98bfe894 Mon Sep 17 00:00:00 2001 From: Gabor Javorszky Date: Sat, 11 Feb 2017 13:48:04 +0100 Subject: [PATCH] Fix typo in function name (#7982) no issue - checkDirectoryExistance -> checkDirectoryExistence --- gulpfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index f0faad5956..5da8add7cc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 @@ -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) { @@ -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));}