Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: --storage-directory flag not being honored in the CLI #981

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

Monirzadeh
Copy link
Collaborator

@Monirzadeh Monirzadeh commented Sep 16, 2024

fix #980
i don't see anywhere else we set cfg.Storage.DataDir if it has higher priority than --storage-directory than we should change

if storageDirectory != "" && cfg.Storage.DataDir != ""

to

if storageDirectory != "" && cfg.Storage.DataDir == ""

Closes #980

@Monirzadeh Monirzadeh self-assigned this Sep 16, 2024
Copy link
Member

@fmartingr fmartingr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of the fix 🥳

@fmartingr fmartingr changed the title fix: storage-directory change storage directory now fix: --storage-directory flag not being honored in the CLI Sep 22, 2024
@fmartingr fmartingr merged commit 9492075 into go-shiori:master Sep 22, 2024
9 checks passed
@Monirzadeh Monirzadeh deleted the fix-storage-directory-flag branch September 22, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI flag --storage-directory seems not to work
2 participants