avoid “can't shift that many” error (#571)

got this error on debian auditing a docker file when testing an ubuntu Dockerfile when lynis try to find KEY_USED
This commit is contained in:
superpoussin22 2018-09-06 07:48:40 +02:00 committed by Michael Boelen
parent 47de2dc4bf
commit 2334bba492

View File

@ -496,11 +496,11 @@
INDENT=$1
;;
--result)
shift
shift $(( $# > 0 ? 1 : 0 ))
RESULT=$1
;;
--text)
shift
shift $(( $# > 0 ? 1 : 0 ))
TEXT=$1
;;
*)
@ -509,7 +509,7 @@
;;
esac
# Go to next parameter
shift
shift $(( $# > 0 ? 1 : 0 ))
done
if [ -z "${RESULT}" ]; then