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