2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Fix typo in function name (#7982)

no issue
- checkDirectoryExistance -> checkDirectoryExistence
This commit is contained in:
Gabor Javorszky 2017-02-11 13:48:04 +01:00 committed by Kevin Ansfield
parent 196d6d02c0
commit a341bbde97

View file

@ -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));}