Do not use find command when busybox is used

This commit is contained in:
Michael Boelen 2019-08-20 15:57:04 +02:00
parent e685182b18
commit 32a895c843
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 5 additions and 3 deletions

View File

@ -246,11 +246,13 @@
if [ -z "${DATA}" ]; then
case ${OS} in
"AIX")
ReportException "HasCorrectFilePermissions:01" "OS not supported yet"
Debug "Skipping find command, as AIX does not support -printf"
;;
*)
# Does not work for AIX
DATA=$(${FINDBINARY} ${CHECKFILE} -printf "%m")
# Only use find when OS is NOT AIX and binaries are NOT busybox
if [ ${SHELL_IS_BUSYBOX} -eq 0 ]; then
DATA=$(${FINDBINARY} ${CHECKFILE} -printf "%m")
fi
;;
esac
fi