From f5d3ef56988fba4274a3f0e3f6f50bf22bfe5608 Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Wed, 30 Jun 2021 18:46:31 +0200 Subject: [PATCH] Make it work with non-executable scripts --- sh/tests/to-git-or-not-to-git_test.sh | 4 ++-- subjects/to-git-or-not-to-git/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/tests/to-git-or-not-to-git_test.sh b/sh/tests/to-git-or-not-to-git_test.sh index bc302ca1..b319d6ed 100755 --- a/sh/tests/to-git-or-not-to-git_test.sh +++ b/sh/tests/to-git-or-not-to-git_test.sh @@ -5,7 +5,7 @@ set -euo pipefail IFS=' ' -submitted=$(./student/to-git-or-not-to-git.sh) -expected=$(./solutions/to-git-or-not-to-git.sh) +submitted=$(bash student/to-git-or-not-to-git.sh) +expected=$(bash solutions/to-git-or-not-to-git.sh) diff <(echo "$submitted") <(echo "$expected") diff --git a/subjects/to-git-or-not-to-git/README.md b/subjects/to-git-or-not-to-git/README.md index 03b660af..eb0a9002 100644 --- a/subjects/to-git-or-not-to-git/README.md +++ b/subjects/to-git-or-not-to-git/README.md @@ -15,7 +15,7 @@ curl -s https://((DOMAIN))/api/graphql-engine/v1/graphql --data '{"query":"{user ### Usage ```console -$ ./to-git-or-not-to-git.sh +$ bash to-git-or-not-to-git.sh 231748 $ ```