Use improved function with return values

This commit is contained in:
mboelen 2015-03-25 16:47:37 +01:00
parent 037f2e9a89
commit 5ecbaafa4f
1 changed files with 2 additions and 10 deletions

View File

@ -53,12 +53,8 @@
if [ ! "${ASBINARY}" = "" ]; then
logtext "Test: Check file permissions for as (Assembler)"
IsWorldExecutable ${ASBINARY}
if [ ${SYMLINK} -eq 0 ]; then
if [ $? -eq 1 ]; then
logtext "Binary: ${ASBINARY} (world executable: ${FileIsWorldExecutable})"
else
logtext "Binary: ${ASBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
fi
if [ ${FileIsWorldExecutable} = "TRUE" ]; then
AddHP 2 3
HARDEN_COMPILERS_NEEDED=1
else
@ -69,12 +65,8 @@
if [ ! "${GCCBINARY}" = "" ]; then
logtext "Test: Check file permissions for GCC compiler"
IsWorldExecutable ${GCCBINARY}
if [ ${SYMLINK} -eq 0 ]; then
if [ $? -eq 1 ]; then
logtext "Binary: ${GCCBINARY} (world executable: ${FileIsWorldExecutable})"
else
logtext "Binary: ${GCCBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
fi
if [ ${FileIsWorldExecutable} = "TRUE" ]; then
AddHP 2 3
HARDEN_COMPILERS_NEEDED=1
else