From ee53fae57b894ed44aeb9d049fb5f96fc0e09959 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 20 Apr 2020 14:52:57 +0200 Subject: [PATCH] bin (sat): check `twistd` before `twistd3` to use venv version first --- bin/sat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sat b/bin/sat index 6ccea7b4..e6319020 100755 --- a/bin/sat +++ b/bin/sat @@ -4,10 +4,10 @@ DEBUG="" DAEMON="" PYTHON="python3" -# for Python 3, "twistd" is named "twistd3" on some distros, so we check for it first -TWISTD="$(which twistd3 2>/dev/null)" +TWISTD="$(which twistd 2>/dev/null)" if [ $? -ne 0 ]; then - TWISTD="$(which twistd 2>/dev/null)" + # for Python 3, "twistd" is named "twistd3" on some distros + TWISTD="$(which twistd3 2>/dev/null)" fi if [ $? -ne 0 ]; then printf "Can't find \"twistd\" script, are you sure that Twisted is installed?\n"