Skip to content

Commit

Permalink
fix: --storage-directory flag not being honored in the CLI (#981)
Browse files Browse the repository at this point in the history
Co-authored-by: Felipe Martin <[email protected]>
  • Loading branch information
Monirzadeh and fmartingr authored Sep 22, 2024
1 parent 027c56d commit 9492075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func initShiori(ctx context.Context, cmd *cobra.Command) (*config.Config, *depen
cfg := config.ParseServerConfiguration(ctx, logger)
cfg.LogLevel = logger.Level.String()

if storageDirectory != "" && cfg.Storage.DataDir != "" {
if storageDirectory != "" {
logger.Warn("--storage-directory is set, overriding SHIORI_DIR.")
cfg.Storage.DataDir = storageDirectory
}
Expand Down

0 comments on commit 9492075

Please sign in to comment.