summary refs log tree commit diff
path: root/debian/build_virtualenv
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-10-18 21:49:09 +0100
committerDan Callahan <danc@element.io>2021-10-22 23:08:54 +0100
commit898e3be4c9582551093e0918bba2398cd08fb0e0 (patch)
tree3d7340fee263cb6ba3a61bd5c16e11c5ee6ef067 /debian/build_virtualenv
parentFix Shellcheck SC2115: Ensure never expands to /* (diff)
downloadsynapse-898e3be4c9582551093e0918bba2398cd08fb0e0.tar.xz
Fix Shellcheck SC2064: Use single quotes on traps
Use single quotes, otherwise this expands now rather than when signalled.

https://github.com/koalaman/shellcheck/wiki/SC2064

Signed-off-by: Dan Callahan <danc@element.io>
Diffstat (limited to '')
-rwxr-xr-xdebian/build_virtualenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/build_virtualenv b/debian/build_virtualenv
index 801ecb9086..e006b48849 100755
--- a/debian/build_virtualenv
+++ b/debian/build_virtualenv
@@ -57,7 +57,7 @@ case "$DEB_BUILD_OPTIONS" in
         # Copy tests to a temporary directory so that we can put them on the
         # PYTHONPATH without putting the uninstalled synapse on the pythonpath.
         tmpdir=`mktemp -d`
-        trap "rm -r $tmpdir" EXIT
+        trap 'rm -r $tmpdir' EXIT
 
         cp -r tests "$tmpdir"