Skip to content

Allow for choice of shell #31

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jverce
Copy link

@jverce jverce commented Jul 9, 2025

Description

This change gives users the option to set the shell under which the docker cp command will run. It uses /bin/bash by default, so the change should be backwards compatible.

Solves #30

This change gives users the option to set the shell under which the
`docker cp` command will run. It uses `/bin/bash` by default, so the
change should be backwards compatible.
@shrink
Copy link
Owner

shrink commented Jul 10, 2025

@jverce thank you very much for the contribution! I think this is a great improvement :) I'll release this as v3.1.0.

src/extract.js Outdated
@@ -6,6 +6,9 @@ async function run() {
const image = core.getInput('image');
const path = core.getInput('path');
const destination = core.getInput('destination') || `extracted-${Date.now()}`;
const shell = core.getInput('shell', {
default: '/bin/bash',
Copy link
Owner

Choose a reason for hiding this comment

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

@jverce I don't recall default being an option for getInput, I think the runner automatically injects the default value so that getInput('shell') will be populated with the default when no value is specified. Does this add (new?) functionality or can we remove it and rely on the normal runner behaviour?

Copy link
Author

Choose a reason for hiding this comment

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

TBH, Copilot suggested it. I guess Copilot doesn't know its own libs 😂
I just removed it based on your feedback. Thanks!

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