-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support special characters in teller sh (#132)
* Fix load env when password has parentheses When a password has ( or ), eval "$(teller sh)" is not working: $ eval "$(teller sh)" bash: syntax error near unexpected token `(' * Add e2e for teller env
- Loading branch information
1 parent
f7f6865
commit 604abec
Showing
3 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: Sh print | ||
command: <binary-path> sh | ||
config_file_name: .teller.yml | ||
config_content: > | ||
project: test | ||
providers: | ||
filesystem: | ||
env_sync: | ||
path: {{.Folder}}/settings/test/all | ||
env: | ||
FOO: | ||
path: {{.Folder}}/settings/test/foo | ||
BAR: | ||
path: {{.Folder}}/settings/test/bar | ||
init_snapshot: | ||
- path: settings/test | ||
file_name: foo | ||
content: shazam | ||
- path: settings/test | ||
file_name: bar | ||
content: shazam | ||
- path: settings/test/all | ||
file_name: secret-a | ||
content: mailman | ||
- path: settings/test/all | ||
file_name: secret-b | ||
content: shazam | ||
- path: settings/test/all | ||
file_name: secret-c | ||
content: shazam-1 | ||
- path: settings/test/all | ||
file_name: secret-d | ||
content: ()"';@ \(\)\"\'\;\@ | ||
|
||
expected_snapshot: | ||
expected_stderr: | ||
expected_stdout: | | ||
#!/bin/sh | ||
export secret-d='()"'"'"';@ \(\)\"\'"'"'\;\@' | ||
export secret-c='shazam-1' | ||
export secret-b='shazam' | ||
export secret-a='mailman' | ||
export FOO='shazam' | ||
export BAR='shazam' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters