Skip to content

Commit 1c50306

Browse files
authored
Merge pull request #9297 from sylvestre/gnu-error
build-gnu.sh: fix the error on line 110
2 parents 7ff8647 + 0500ee3 commit 1c50306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/build-gnu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ cd -
107107
# Pass the feature flags to make, which will pass them to cargo
108108
"${MAKE}" PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
109109
# min test for SELinux
110-
[ ${SELINUX_ENABLED} = 1 ] && touch g && "${UU_MAKE_PROFILE}"/stat -c%C g && rm g
110+
[ "${SELINUX_ENABLED}" = 1 ] && touch g && "${UU_MAKE_PROFILE}"/stat -c%C g && rm g
111111

112112
cp "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests rename this script before running, to avoid confusion with the make target
113113
# Create *sum binaries
@@ -141,7 +141,7 @@ else
141141
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" tests/local.mk
142142
./bootstrap --skip-po
143143
./configure --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
144-
"$([ ${SELINUX_ENABLED} = 1 ] && echo --with-selinux || echo --without-selinux)"
144+
"$([ "${SELINUX_ENABLED}" = 1 ] && echo --with-selinux || echo --without-selinux)"
145145
#Add timeout to to protect against hangs
146146
sed -i 's|^"\$@|'"${SYSTEM_TIMEOUT}"' 600 "\$@|' build-aux/test-driver
147147
sed -i 's| tr | /usr/bin/tr |' tests/init.sh

0 commit comments

Comments
 (0)