Make it work with non-executable scripts

This commit is contained in:
xpetit 2021-06-30 18:46:31 +02:00
parent af2929ad8a
commit f5d3ef5698
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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
$
```