diff --git a/CHANGELOG.md b/CHANGELOG.md index 65040ed..b2fd6d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ ## Fixes and improvements - +# 2.1.3 +## Fixes and improvements +- Fix `register` bug + # 2.1.2 ## Fixes and improvements - Fix display of english date time in `queue` and `key` diff --git a/dist/windows.zip b/dist/windows.zip index 3b585db..4161879 100644 Binary files a/dist/windows.zip and b/dist/windows.zip differ diff --git a/package.json b/package.json index e0ca9e9..5f6e4de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@merrymake/cli", - "version": "2.1.2", + "version": "2.1.3", "description": "", "main": "index.js", "scripts": { diff --git a/questions.js b/questions.js index 013145d..6062320 100644 --- a/questions.js +++ b/questions.js @@ -258,7 +258,7 @@ function register() { text: "Manually add key", action: () => register_manual(), }); - if (keyfiles.includes("merrymake")) { + if (!keyfiles.includes("merrymake")) { keys.push({ long: "new", short: "n", diff --git a/questions.ts b/questions.ts index 87b7fc9..18be4c6 100644 --- a/questions.ts +++ b/questions.ts @@ -353,7 +353,7 @@ async function register() { text: "Manually add key", action: () => register_manual(), }); - if (keyfiles.includes("merrymake")) { + if (!keyfiles.includes("merrymake")) { keys.push({ long: "new", short: "n",