From 637ca7ba746c0241aaec79b79349d5dac4ec7408 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 12 Apr 2022 14:50:58 +0200 Subject: Add option to ignore unsafe packages --- commands/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/install.js') diff --git a/commands/install.js b/commands/install.js index ebd0a82..f8a238b 100644 --- a/commands/install.js +++ b/commands/install.js @@ -159,7 +159,7 @@ module.exports = async (argv) => { } try { - if (!signed && !(await prompts.confirm({ + if (!signed && !ignoreUnsignedPackages && !(await prompts.confirm({ message: "This package is unsafe, installing it may damage your system. Are you sure you want to continue?", initial: false }))) { -- cgit