We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25d39f0 commit 7150481Copy full SHA for 7150481
internal/boxcli/update.go
@@ -30,7 +30,12 @@ func updateCmd() *cobra.Command {
30
"If no packages are specified, all packages will be updated. " +
31
"Legacy non-versioned packages will be converted to @latest versioned " +
32
"packages resolved to their current version.",
33
- PreRunE: ensureNixInstalled,
+ PreRunE: func(cmd *cobra.Command, args []string) error {
34
+ if flags.noInstall {
35
+ return nil
36
+ }
37
+ return ensureNixInstalled(cmd, args)
38
+ },
39
RunE: func(cmd *cobra.Command, args []string) error {
40
return updateCmdFunc(cmd, args, flags)
41
},
0 commit comments