From 36f079db98afbc41d787164454991f4542c848f5 Mon Sep 17 00:00:00 2001 From: miguel Date: Wed, 1 Feb 2023 17:10:41 +0000 Subject: [PATCH] docs(grades): fix test and error message --- sh/tests/grades_test.sh | 11 +++++++---- sh/tests/solutions/grades.sh | 2 +- subjects/devops/grades/README.md | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/sh/tests/grades_test.sh b/sh/tests/grades_test.sh index 1f6a1bda1..2d51ff740 100755 --- a/sh/tests/grades_test.sh +++ b/sh/tests/grades_test.sh @@ -5,8 +5,9 @@ IFS=' script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd) challenge() { - args=$1 - input=$2 + + input="${@: -1}" + args=${@:1:$#-1} submitted=$( bash -c ""$script_dirS"/student/grades.sh $args" <