summaryrefslogtreecommitdiff
path: root/python/samba
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2023-02-08 18:40:04 +0100
committerJule Anger <janger@samba.org>2023-02-24 08:56:14 +0000
commit074e0c2783aae1e220f4e195b325374b440e3a8d (patch)
tree52581f1df3e37b6098d548142de854d61d85b73a /python/samba
parent359095e8ddda1db6c04f1edc32c13bf2c452c12f (diff)
downloadsamba-074e0c2783aae1e220f4e195b325374b440e3a8d.tar.gz
python:tests: Correctly escape $ in contact_edit.sh
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15308 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit af1324e3be28773e0b8cc827c669812e4c257989)
Diffstat (limited to 'python/samba')
-rwxr-xr-xpython/samba/tests/samba_tool/contact_edit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/tests/samba_tool/contact_edit.sh b/python/samba/tests/samba_tool/contact_edit.sh
index 3c14ac8de26..a1863846bc2 100755
--- a/python/samba/tests/samba_tool/contact_edit.sh
+++ b/python/samba/tests/samba_tool/contact_edit.sh
@@ -46,7 +46,7 @@ add_attribute_base64()
#!/usr/bin/env bash
contact_ldif="\$1"
-grep -v '^$' \$contact_ldif > \${contact_ldif}.tmp
+grep -v '^\$' \$contact_ldif > \${contact_ldif}.tmp
echo "displayName:: $display_name_b64" >> \${contact_ldif}.tmp
mv \${contact_ldif}.tmp \$contact_ldif
@@ -87,7 +87,7 @@ add_attribute_base64_control()
#!/usr/bin/env bash
contact_ldif="\$1"
-grep -v '^$' \$contact_ldif > \${contact_ldif}.tmp
+grep -v '^\$' \$contact_ldif > \${contact_ldif}.tmp
echo "displayName:: $display_name_con_b64" >> \${contact_ldif}.tmp
mv \${contact_ldif}.tmp \$contact_ldif