Skip to content

Commit

Permalink
fix: empty path error when resolving appsLink (#26)
Browse files Browse the repository at this point in the history
* fix: empty path when resolving appsLink

* fix: resolve appLinkDir from cli flag
  • Loading branch information
Eggrror404 authored Oct 12, 2024
1 parent 6cf2af3 commit 9090a77
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions commands/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ var InitCommand = cli.Command{
}
}
}
appsLinkDir, err = utils.ResolvePath(appsLinkDir)
if err != nil {
return err
if appsLinkDir != "" {
appsLinkDir, err = utils.ResolvePath(appsLinkDir)
if err != nil {
return err
}
}

if !enableIntegrationPromptSet && !assumeYes {
Expand Down

0 comments on commit 9090a77

Please sign in to comment.