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

Update template.sh - bugfix for cmd #761

Merged
merged 3 commits into from
Jan 1, 2025

Conversation

tschettervictor
Copy link
Collaborator

This fixes a bug where templated "cmd" would not working when doing some commands like fetch.

@bmac2
Copy link
Collaborator

bmac2 commented Dec 16, 2024

@tschettervictor what was the command syntax that was failing before that now works? What can I run to see it broken before your change?

@tschettervictor
Copy link
Collaborator Author

tschettervictor commented Dec 16, 2024

It was a fetch command.

CMD fetch -o /tmp/dasherr-install.sh https://raw.githubusercontent.com/tschettervictor/bsd-apps/main/dasherr/dasherr-install.sh

This PR simply puts the args inside literal quotes instead of single quotes.

@bmac2
Copy link
Collaborator

bmac2 commented Jan 1, 2025

fetch command works flawlessly now. Merging.

@bmac2 bmac2 merged commit 0d32733 into BastilleBSD:master Jan 1, 2025
1 check passed
@tschettervictor
Copy link
Collaborator Author

Sorry. The point of this was that a template that is applied with the CMD argument was failing originally.

@bmac2
Copy link
Collaborator

bmac2 commented Jan 1, 2025

tested with template also, works as should

@tschettervictor tschettervictor deleted the fix-cmd-template branch January 1, 2025 03:19
@tschettervictor
Copy link
Collaborator Author

@bmac This needs to be reverted. It broke some things. See #400
Please revert it ASAP.

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