From e015b9ae76a73489d229d2161a6af1a6628a9651 Mon Sep 17 00:00:00 2001 From: Graeme Porteous Date: Tue, 4 May 2021 16:13:39 +0100 Subject: [PATCH] Fix conditional The double equals operator is only valid in bash, not POSIX sh. --- bin/install-site.sh | 2 +- shlib/installfns | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/install-site.sh b/bin/install-site.sh index 26a5b989..f1dd2b0c 100755 --- a/bin/install-site.sh +++ b/bin/install-site.sh @@ -164,7 +164,7 @@ deb http://security.debian.org/ ${DISTVERSION}/updates main contrib non-free deb-src http://security.debian.org/ ${DISTVERSION}/updates main contrib non-free EOF - if [ "$BACKPORTS" == "true" ] + if [ x"$BACKPORTS" = x"true" ] then cat >> /etc/apt/sources.list.d/mysociety-extra.list <> /etc/apt/sources.list.d/mysociety-extra.list <