mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-25 01:33:28 +01:00
Revert the update change since that needs to be in a separate release
This commit is contained in:
parent
8bb87f2d7a
commit
8834eaca06
@ -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)")
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user