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

fix: make sure args to echo are quoted #1403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sglyon
Copy link

@sglyon sglyon commented Feb 7, 2025

When running kamal build pull (or any action that internally calls that like kamal setup, kamal deploy, kamal redeploy, etc) I would get this line:

 DEBUG [c035c395] Command: /usr/bin/env mkdir -p .kamal && echo [2025-02-07T13:42:50Z] [EMAIL] Pulled image with version f9d2e07307ea435ce6616cb6a15bb25cdddd96ba >> .kamal/PROJECT-audit.log
 DEBUG [c035c395] 	zsh:1: no matches found: [2025-02-07T13:42:50Z]

The issue was that the argument to echo was not being quoted.

With this change the command is now:

/usr/bin/env mkdir -p .kamal && echo "[2025-02-07T13:49:23Z] [EMAIL]" "Pulled image with version f9d2e07307ea435ce6616cb6a15bb25cdddd96ba" >> .kamal/PROJECT-audit.log

which works just fine

When running `kamal build pull`  (or any action that internally calls that like `kamal setup`, `kamal deploy`, `kamal redeploy`, etc) I would get this line:

```
 DEBUG [c035c395] Command: /usr/bin/env mkdir -p .kamal && echo [2025-02-07T13:42:50Z] [EMAIL] Pulled image with version f9d2e07307ea435ce6616cb6a15bb25cdddd96ba >> .kamal/PROJECT-audit.log
 DEBUG [c035c395] 	zsh:1: no matches found: [2025-02-07T13:42:50Z]
```

The issue was that the argument to echo was not being quoted. 

With this change the command is now:

```
/usr/bin/env mkdir -p .kamal && echo "[2025-02-07T13:49:23Z] [EMAIL]" "Pulled image with version f9d2e07307ea435ce6616cb6a15bb25cdddd96ba" >> .kamal/PROJECT-audit.log
```

which works just fine
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.

1 participant