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

Append file extension if missing #82

Merged
merged 2 commits into from
May 4, 2023
Merged

Append file extension if missing #82

merged 2 commits into from
May 4, 2023

Conversation

dshoreman
Copy link
Owner

Reopen of #81 by @boppy after I screwed up the post-rebase push.

Appends the current format, in case user omits.

Fixes #80

boppy and others added 2 commits May 4, 2023 16:18
Appends the current format, in case user omits.

Fixes [#80](#80)
The CLI prompt when run interactively would always default to the
original filename if no value was given, but if the default value is
removed from the Yad prompt then the result is `mv foo/filename foo/`.

This always defaults to the old name rather than relying on an `else`,
and fixes a shellcheck bracket issue with the file extension check.
@dshoreman dshoreman merged commit 1b81cb4 into develop May 4, 2023
@dshoreman dshoreman deleted the boppy/develop branch May 4, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Files without extensions don't get recognised by Nextcloud
2 participants