Skip to content

Commit

Permalink
chore: check symlink path before creation
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Apr 18, 2024
1 parent ea960ad commit ae48044
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions commands/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,11 @@ func (x *InstallableApp) Integrate() error {
if err = metadata.InstallDesktopFile(&x.App.Paths); err != nil {
return err
}
x.logDebug(fmt.Sprintf("creating symlink %s", x.App.Paths.Symlink))
if err = metadata.Symlink(&x.App.Paths); err != nil {
return err
if x.App.Paths.Symlink != "" {
x.logDebug(fmt.Sprintf("creating symlink %s", x.App.Paths.Symlink))
if err = metadata.Symlink(&x.App.Paths); err != nil {
return err
}
}
return nil
}
Expand Down

0 comments on commit ae48044

Please sign in to comment.