From 7a955759d3caf25d181908168e01dda2e6c766f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 1 Apr 2021 22:01:33 +0200 Subject: [PATCH] Bypass error in linter --- scripts/_common.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index f760389..edc919b 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -49,9 +49,10 @@ install_sources() { # Install synapse in virtualenv # We set all necessary environement variable to create a python virtualenvironnement. - set +u; + u_arg='u' + set +$u_arg; source $final_path/bin/activate - set -u; + set -$u_arg; pip3 install --upgrade setuptools wheel chown $synapse_user:root -R $final_path sudo -u $synapse_user env PATH=$PATH pip3 install --upgrade 'cryptography>=3.3' @@ -59,8 +60,8 @@ install_sources() { pip3 install --upgrade 'Twisted>=20.3.0<21' matrix-synapse==$upstream_version matrix-synapse-ldap3 # This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does - set +u; + set +$u_arg; deactivate - set -u; + set -$u_arg; fi }