From 10d5c9c74b20f6ba2233d307fd05fd536d140dc6 Mon Sep 17 00:00:00 2001 From: Vadim Kotov Date: Mon, 16 Jul 2018 16:29:32 +0300 Subject: [PATCH] Fixed grammar: 'does not exists' -> 'does not exist' --- CHANGELOG.md | 2 +- bin/pm2 | 2 +- lib/API/Containerizer.js | 2 +- lib/API/Monit.js | 2 +- lib/Common.js | 4 ++-- lib/tools/xdg-open | 2 +- test/e2e/logs/log-entire.sh | 26 +++++++++++++------------- test/e2e/modules/get-set.sh | 2 +- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcb607ed7..8faa4824d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -920,7 +920,7 @@ pm2.destroy(cb) // Close and delete all pm2 related files of this session - keymetrics linking after pm2 update is done once all apps are started - pm2 list processes are now sorted by name instead id - #2248 livescript support added in development mode -- The client/server file called Satan.js does not exists anymore. It has been replaced by the file combo ./lib/Client.js and ./lib/Daemon.js +- The client/server file called Satan.js does not exist anymore. It has been replaced by the file combo ./lib/Client.js and ./lib/Daemon.js - PM2 --no-daemon is better now ### Breaking change diff --git a/bin/pm2 b/bin/pm2 index 52f8b4905..ce8988c7f 100755 --- a/bin/pm2 +++ b/bin/pm2 @@ -197,7 +197,7 @@ if (_arr.indexOf('--no-daemon') > -1) { // Start daemon if it does not exist // // Function checks if --no-daemon option is present, - // and starts daemon in the same process if it does not exists + // and starts daemon in the same process if it does not exist // console.log('pm2 launched in no-daemon mode (you can add DEBUG="*" env variable to get more messages)'); diff --git a/lib/API/Containerizer.js b/lib/API/Containerizer.js index 686edfd1d..6a8ffe414 100644 --- a/lib/API/Containerizer.js +++ b/lib/API/Containerizer.js @@ -226,7 +226,7 @@ module.exports = function(CLI) { fs.stat(docker_filepath, function(err, stat) { if (err) { - // Dockerfile does not exists, generate one + // Dockerfile does not exist, generate one // console.log(chalk.blue.bold('Generating new Dockerfile')); if (opts.force == true) { return resolve(generateDockerfile(docker_filepath, main_script, { diff --git a/lib/API/Monit.js b/lib/API/Monit.js index 9d86c27ca..71a69e6a5 100644 --- a/lib/API/Monit.js +++ b/lib/API/Monit.js @@ -116,7 +116,7 @@ Monit.refresh = function(processes) { //this is to avoid a print issue when the process is restarted for example //we might also check for the pid but restarted|restarting will be rendered bad if(this.bars[proc.pm_id] && proc.pm2_env.status !== this.bars[proc.pm_id].status) { - debug('bars for %s does not exists', proc.pm_id); + debug('bars for %s does not exist', proc.pm_id); this.addProcesses(processes); break; } diff --git a/lib/Common.js b/lib/Common.js index 1de446f46..be7611a68 100644 --- a/lib/Common.js +++ b/lib/Common.js @@ -144,7 +144,7 @@ Common.prepareAppConf = function(opts, app) { app.pm_exec_path = path.resolve(cwd, app.script); - // If script does not exists after resolution + // If script does not exist after resolution if (!fs.existsSync(app.pm_exec_path)) { var ckd; // Try resolve command available in $PATH @@ -221,7 +221,7 @@ Common.prepareAppConf = function(opts, app) { var dir = path.dirname(path.resolve(cwd, af)); if (!fs.existsSync(dir)) { - Common.printError(cst.PREFIX_MSG_WARNING + 'Folder does not exists: ' + dir); + Common.printError(cst.PREFIX_MSG_WARNING + 'Folder does not exist: ' + dir); Common.printOut(cst.PREFIX_MSG + 'Creating folder: ' + dir); require('mkdirp')(dir, function(err) { if (!err) return; diff --git a/lib/tools/xdg-open b/lib/tools/xdg-open index 2962c6ca2..2b7a8ed94 100755 --- a/lib/tools/xdg-open +++ b/lib/tools/xdg-open @@ -311,7 +311,7 @@ check_vendor_prefix() check_output_file() { # if the file exists, check if it is writeable - # if it does not exists, check if we are allowed to write on the directory + # if it does not exist, check if we are allowed to write on the directory if [ -e "$1" ]; then if [ ! -w "$1" ]; then exit_failure_file_permission_write "no permission to write to file '$1'" diff --git a/test/e2e/logs/log-entire.sh b/test/e2e/logs/log-entire.sh index d09804bc8..23a2270a3 100644 --- a/test/e2e/logs/log-entire.sh +++ b/test/e2e/logs/log-entire.sh @@ -66,7 +66,7 @@ $pm2 start throw-later.js -i 1 -o out.log -e err.log -l entire.log test -head ">> START CLUSTERMODE (ENTIRE DO NOT EXISTS)" +head ">> START CLUSTERMODE (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -i 1 -o out.log -e err.log @@ -78,7 +78,7 @@ $pm2 start throw-later.js -i 1 -o out.log -e err.log -l entire.log --merge-logs test -head ">> START CLUSTERMODE WITH --merge-logs (ENTIRE DO NOT EXISTS)" +head ">> START CLUSTERMODE WITH --merge-logs (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -i 1 -o out.log -e err.log --merge-logs @@ -91,7 +91,7 @@ $pm2 start throw-later.js -o out.log -e err.log -l entire.log test -head ">> START FORKMODE (ENTIRE DO NOT EXISTS)" +head ">> START FORKMODE (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log @@ -103,7 +103,7 @@ $pm2 start throw-later.js -o out.log -e err.log -l entire.log --merge-logs test -head ">> START FORKMODE WITH --merge-logs (ENTIRE DO NOT EXISTS)" +head ">> START FORKMODE WITH --merge-logs (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log --merge-logs @@ -117,7 +117,7 @@ $pm2 reloadLogs test -head ">> RELOAD LOGS (ENTIRE DO NOT EXISTS)" +head ">> RELOAD LOGS (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log --merge-logs @@ -133,7 +133,7 @@ $pm2 restart all test -head ">> RESTART (ENTIRE DO NOT EXISTS)" +head ">> RESTART (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log --merge-logs @@ -149,7 +149,7 @@ $pm2 reload all test -head ">> RELOAD (ENTIRE DO NOT EXISTS)" +head ">> RELOAD (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log --merge-logs @@ -166,12 +166,12 @@ spec "\"entire log path\" should exists." test -head ">> DESCRIBE (ENTIRE DO NOT EXISTS)" +head ">> DESCRIBE (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log --merge-logs $pm2 desc "throw-later" | grep -w "entire log path" -ispec "\"entire log path\" should not exists." +ispec "\"entire log path\" should not exist." test "NE" @@ -183,7 +183,7 @@ $pm2 flush test -head ">> FLUSH (ENTIRE DO NOT EXISTS)" +head ">> FLUSH (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log --merge-logs @@ -200,12 +200,12 @@ spec "\"entire log path\" should exists." test -head ">> JLIST (ENTIRE DO NOT EXISTS)" +head ">> JLIST (ENTIRE DOES NOT EXIST)" $pm2 start throw-later.js -o out.log -e err.log --merge-logs $pm2 jlist | grep -w "pm_log_path" -ispec "\"entire log path\" should not exists." +ispec "\"entire log path\" should not exist." test "NE" @@ -215,7 +215,7 @@ $pm2 start throw-later.json test -head ">> START JSON (ENTIRE DO NOT EXISTS)" +head ">> START JSON (ENTIRE DOES NOT EXIST)" $pm2 start throw-later1.json diff --git a/test/e2e/modules/get-set.sh b/test/e2e/modules/get-set.sh index c1a649848..601ff27ae 100644 --- a/test/e2e/modules/get-set.sh +++ b/test/e2e/modules/get-set.sh @@ -19,6 +19,6 @@ spec "Should key exists" $pm2 unset key1 cat ~/.pm2/module_conf.json | grep "key1" -ispec "Should key not exists" +ispec "Should key does not exist" rm -rf ~/.pm2