diff --git a/client/cmd/install.go b/client/cmd/install.go index e5e23641..e9c7cdc8 100644 --- a/client/cmd/install.go +++ b/client/cmd/install.go @@ -31,6 +31,9 @@ var ( offlineInstall *bool skipConfigModification *bool skipUpdateConfigModification *bool + + //lint:ignore U1000 Flag that is allowed to be specified, but not used + currentlyInstalledVersion *string ) var installCmd = &cobra.Command{ @@ -688,4 +691,5 @@ func init() { offlineInstall = installCmd.Flags().Bool("offline", false, "Install hiSHtory in offline mode with all syncing capabilities disabled") skipConfigModification = installCmd.Flags().Bool("skip-config-modification", false, "Skip modifying shell configs and instead instruct the user on how to modify their configs") skipUpdateConfigModification = installCmd.Flags().Bool("skip-update-config-modification", false, "Skip modifying shell configs for updates") + currentlyInstalledVersion = installCmd.Flags().String("currently-installed-version", "", "The currently installed version (used by the update command)") } diff --git a/client/cmd/update.go b/client/cmd/update.go index 56ac7476..145c161d 100644 --- a/client/cmd/update.go +++ b/client/cmd/update.go @@ -112,7 +112,7 @@ func update(ctx context.Context) error { if err != nil { return fmt.Errorf("failed to chmod +x the update (stdout=%#v, stderr=%#v): %w", stdout.String(), stderr.String(), err) } - cmd = exec.Command(getTmpClientPath(), "install", "--skip-update-config-modification") + cmd = exec.Command(getTmpClientPath(), "install") cmd.Stdout = os.Stdout stderr = bytes.Buffer{} cmd.Stdin = os.Stdin