Skip to content

Commit

Permalink
podman-mac-helper: install: do not error if already installed
Browse files Browse the repository at this point in the history
Since commit bae07b6 we exit with 1 one errors. This caused problem
for the mac installer which fails because of the error now.
If the helper is already installed do not treat this as hard error and
just log it instead.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Mar 24, 2023
1 parent f9beb0d commit 4f3cbf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/podman-mac-helper/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func install(cmd *cobra.Command, args []string) error {
fileName := filepath.Join("/Library", "LaunchDaemons", labelName)

if _, err := os.Stat(fileName); err == nil || !os.IsNotExist(err) {
return errors.New("helper is already installed, uninstall first")
fmt.Fprintln(os.Stderr, "helper is already installed, skipping the install, uninstall first if you want to reinstall")
return nil
}

prog, err := installExecutable(userName)
Expand Down

0 comments on commit 4f3cbf1

Please sign in to comment.