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

install command: add -T option to cp to not create nested folders on duplicate calls #243

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

daywalker90
Copy link
Collaborator

If you call coffee install more than once it will create folders like this:

  1. ~/.coffee//plugins/<plugin_name>
  2. ~/.coffee//plugins/<plugin_name>/<plugin_name>

the -T option for cp should fix this.

Copy link

netlify bot commented Feb 25, 2024

Deploy Preview for coffee-docs canceled.

Name Link
🔨 Latest commit 9ec10ea
🔍 Latest deploy log https://app.netlify.com/sites/coffee-docs/deploys/65db3de1efad3f000830944a

@vincenzopalazzo vincenzopalazzo added this to the 0.1-rc1 milestone Feb 25, 2024
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

LGTM waiting for @tareknaser that is the author of this feature for confimation

Copy link
Collaborator

@tareknaser tareknaser 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 the catch!

@vincenzopalazzo vincenzopalazzo merged commit 70de208 into coffee-tools:master Feb 26, 2024
8 of 9 checks passed
@tareknaser
Copy link
Collaborator

Just noticed that -T is a GNU cp feature and won't work on macOS.

Seems like kubernetes had a similar issue before kubernetes/kubernetes#56383

@vincenzopalazzo
Copy link
Contributor

Just noticed that -T is a GNU cp feature and won't work on macOS.

you had an OSX iirc? did you not test on your machine before approving the PR?

@tareknaser
Copy link
Collaborator

you had an OSX iirc? did you not test on your machine before approving the PR?

No I actually missed this one. I read the documentation for the flag online and thought it made perfect sense for a quick fix
My bad

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.

3 participants