Skip to content

Commit

Permalink
Check for getenforce command explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Dec 3, 2019
1 parent 520bbb3 commit cfe75a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/toolchain/scripts/install_openblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ case "$with_openblas" in
cd OpenBLAS-${openblas_ver}

for patch in "${PATCHES[@]}" ; do
patch -p1 < "${SCRIPT_DIR}/${patch}" || [ $(getenforce) = 'Enforcing' ] && true || false
patch -p1 < "${SCRIPT_DIR}/${patch}" || command -v getenforce >/dev/null && [ $(getenforce) = 'Enforcing' ] && true || false
done

# First attempt to make openblas using auto detected
Expand Down

0 comments on commit cfe75a9

Please sign in to comment.