Skip to content

Commit bbfc154

Browse files
authored
build-gnu.sh: Remove || true
1 parent d432131 commit bbfc154

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

util/build-gnu.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ cd -
132132

133133
# Pass the feature flags to make, which will pass them to cargo
134134
"${MAKE}" PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
135-
touch g
136-
echo "stat with selinux support"
137-
./target/debug/stat -c%C g || true
138-
rm g
135+
[ ${SELINUX_ENABLED} = 1 ] && touch g && echo "stat with selinux support" && "${UU_MAKE_PROFILE}"/stat -c%C g && rm g
139136

140137
cp "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests rename this script before running, to avoid confusion with the make target
141138
# Create *sum binaries

0 commit comments

Comments
 (0)