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

Use base64 -d on all Linux platforms and --decode on others #1

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

jantari
Copy link

@jantari jantari commented Jun 23, 2022

Hi,

to hopefully get Invicton-Labs#3 moving,
I have transplanted the fix used in traefik/traefik#2344 to your branch.

traefik is MIT licensed and I have credited and linked their PR for this small piece of code so should be totally OK.

They are still using this exact fix today, 5 years later, so it appears to work well for them:

https://github.com/nknapp/traefik/blame/master/contrib/scripts/dumpcerts.sh#L45

I want to push to your fork of the terraform-external-shell-resource repository so when Invicton-Labs#3 gets merged your contribution is credited. If I made my own PR it would be duplicated first of all, but also your contribution would be lost.

Thanks!

The busybox (Alpine) version of the base64 command does not support the
long form flag '--decode' and the macOS version does not support '-d' so
we have to use different base64 commands depending on the platform.
@tvesely
Copy link
Owner

tvesely commented Oct 25, 2022

I never saw this - Thanks for taking the time to do this, I haven't had an any time to try it out recently. This looks good.

@tvesely tvesely merged commit 5d7673c into tvesely:busybox_compatibility Oct 25, 2022
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.

2 participants