Skip to content

Commit

Permalink
Fix conditional
Browse files Browse the repository at this point in the history
The double equals operator is only valid in bash, not POSIX sh.
  • Loading branch information
gbp committed May 5, 2021
1 parent 02fa755 commit e015b9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/install-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
# Debian Backports
Expand Down
2 changes: 1 addition & 1 deletion shlib/installfns
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
# Debian Backports
Expand Down

0 comments on commit e015b9a

Please sign in to comment.