Skip to content

Commit f15dee8

Browse files
authored
Update build-gnu.sh
1 parent 13f0fa4 commit f15dee8

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

util/build-gnu.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,12 @@ cd -
136136
ln ${UU_BUILD_DIR}/install ${UU_BUILD_DIR}/ginstall
137137
"${MAKE}" SKIP_UTILS=install MULTICALL=y PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
138138

139-
[ SELINUX_ENABLED = 1 ] && chcon -t bin_t "${UU_BUILD_DIR}/coreutils"
139+
[ ${SELINUX_ENABLED} = 1 ] && chcon -t bin_t "${UU_BUILD_DIR}/coreutils"
140140
for binary in $(${UU_BUILD_DIR}/coreutils --list); do
141141
(cd ${UU_BUILD_DIR} && cp -v --remove-destination coreutils "$binary")
142-
[ SELINUX_ENABLED = 1 ] && chcon -t bin_t "${UU_BUILD_DIR}/${binary}"
142+
[ ${SELINUX_ENABLED} = 1 ] && chcon -t bin_t "${UU_BUILD_DIR}/${binary}"
143143
done
144-
touch g
145-
echo "stat with selinux support"
146-
${UU_BUILD_DIR}/stat -c%C g || :
147-
rm g
144+
[ ${SELINUX_ENABLED} = 1 ] && echo "stat with selinux support" && touch g && ${UU_BUILD_DIR}/stat -c%C g && rm g
148145

149146
##
150147

0 commit comments

Comments
 (0)