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

View File

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