Skip to content

Commit d0590c7

Browse files
committed
Fix: Position of whitespace was wrong and bash complained about syntax error.
1 parent fb8761f commit d0590c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-scripts/sasl-build.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ build_sasl2() {
4848
# (because they don't exist in the PIP repositories) and "pip install" will fail without rust. Specifically, when
4949
# compiling cryptographic libraries.
5050
setup_rust() {
51-
if [[ "${arch}"!= "386" ]] && [[ "${arch}"!= "i386" ]] && [[ "${arch}"!= "mips64el" ]]; then
51+
if [[ "${arch}" != "386" ]] && [[ "${arch}" != "i386" ]] && [[ "${arch}" != "mips64el" ]]; then
5252
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
5353
export PATH="$HOME/.cargo/bin:$PATH"
5454
. "$HOME/.cargo/env"
@@ -60,7 +60,7 @@ setup_rust() {
6060
setup_python_venv() {
6161
python3 -m venv /sasl
6262
. /sasl/bin/activate
63-
if [[ "${arch}"!= "386" ]] && [[ "${arch}"!= "i386" ]] && [[ "${arch}"!= "mips64el" ]]; then
63+
if [[ "${arch}" != "386" ]] && [[ "${arch}" != "i386" ]] && [[ "${arch}" != "mips64el" ]]; then
6464
pip3 install msal
6565
fi
6666
}
@@ -100,7 +100,7 @@ else
100100
# Run compilation and installation
101101
setup_rust
102102
base_install
103-
if [[ "${arch}"!= "386" ]] && [[ "${arch}"!= "i386" ]] && [[ "${arch}"!= "mips64el" ]]; then
103+
if [[ "${arch}" != "386" ]] && [[ "${arch}" != "i386" ]] && [[ "${arch}" != "mips64el" ]]; then
104104
rustup self uninstall -y
105105
fi
106106

0 commit comments

Comments
 (0)