From 2334bba492687f45a248ca90bd10227fa40eeed2 Mon Sep 17 00:00:00 2001 From: superpoussin22 Date: Thu, 6 Sep 2018 07:48:40 +0200 Subject: [PATCH] =?UTF-8?q?avoid=20=E2=80=9Ccan't=20shift=20that=20many?= =?UTF-8?q?=E2=80=9D=20error=20(#571)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit got this error on debian auditing a docker file when testing an ubuntu Dockerfile when lynis try to find KEY_USED --- include/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/functions b/include/functions index e4776ed8..39dd8697 100644 --- a/include/functions +++ b/include/functions @@ -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