summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index 01ed36711..d1beb79bb 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -283,12 +283,12 @@ pub async fn install_command(
flags: Arc<Flags>,
install_flags: InstallFlags,
) -> Result<(), AnyError> {
- if !install_flags.global {
- log::warn!("⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag.");
- }
-
match install_flags.kind {
InstallKind::Global(global_flags) => {
+ if !install_flags.global {
+ log::warn!("⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag.");
+ }
+
install_global(flags, global_flags).await
}
InstallKind::Local(maybe_add_flags) => {