From 481fa047e4c8e79006c08f1cd6fcc3e4dc1680b9 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 10 Jan 2021 19:22:59 -0500 Subject: [PATCH] checkPlugin: Merge the `autoupdate` option into `autofix` --- bin/plugins/checkPlugin.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/plugins/checkPlugin.js b/bin/plugins/checkPlugin.js index 00aeb5aa9..570c3bda0 100755 --- a/bin/plugins/checkPlugin.js +++ b/bin/plugins/checkPlugin.js @@ -26,8 +26,7 @@ console.log(`Checking the plugin: ${pluginName}`); const optArgs = process.argv.slice(3); const autoCommit = optArgs.indexOf('autocommit') !== -1; -const autoUpdate = autoCommit || optArgs.indexOf('autoupdate') !== -1; -const autoFix = autoUpdate || optArgs.indexOf('autofix') !== -1; +const autoFix = autoCommit || optArgs.indexOf('autofix') !== -1; const execSync = (cmd, opts = {}) => (childProcess.execSync(cmd, { cwd: `${pluginPath}/`, @@ -344,7 +343,7 @@ fs.readdir(pluginPath, (err, rootFiles) => { console.log('Travis file created, please sign into travis and enable this repository'); } } - if (autoFix && autoUpdate) { + if (autoFix) { // checks the file versioning of .travis and updates it to the latest. const existingConfig = fs.readFileSync(`${pluginPath}/.travis.yml`, {encoding: 'utf8', flag: 'r'}); const existingConfigLocation = existingConfig.indexOf('##ETHERPAD_TRAVIS_V=');