mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
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:
parent
47de2dc4bf
commit
2334bba492
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user