-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test both escaping variables passed into debos and the new escaping template function Signed-off-by: Sjoerd Simons <[email protected]>
- Loading branch information
1 parent
5cae218
commit 20a384d
Showing
2 changed files
with
21 additions
and
0 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
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,20 @@ | ||
# expected to be run with -t escaled:\$bad\'ge\$rs or similar to verify passing | ||
# variables onwards | ||
{{ $escaped := or .escaped "$mu'room$" }} | ||
architecture: amd64 | ||
|
||
actions: | ||
- action: run | ||
description: test escaping | ||
chroot: false | ||
command: echo {{ escape $escaped }} > test.a | ||
- action: run | ||
description: test escaping | ||
chroot: false | ||
command: |- | ||
cat << 'EOF' > test.b | ||
{{ $escaped }} | ||
EOF | ||
- action: run | ||
chroot: false | ||
command: diff -u test.a test.b |