Skip to content

Node.js based forum software built for the modern web

closes #4517

barisusakli83d863f3db96
diff --git a/nodebb b/nodebb
index 3e3aac5890..fb8d0a6911 100755
--- a/nodebb
+++ b/nodebb
@@ -196,7 +196,7 @@ var getRunningPid = function(callback) {
description: 'Proceed with upgrade (y|n)?'.reset,
type: 'string'
}, function(err, result) {
- if (result.upgrade === 'y' || result.upgrade === 'yes') {
+ if (['y', 'Y', 'yes', 'YES'].indexOf(result.upgrade) !== -1) {
process.stdout.write('\nUpgrading packages...');
var args = ['npm', 'i'];
found.forEach(function(suggestObj) {