Browse Source

Make it work with non-executable scripts

content-update
xpetit 3 years ago
parent
commit
f5d3ef5698
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 4
      sh/tests/to-git-or-not-to-git_test.sh
  2. 2
      subjects/to-git-or-not-to-git/README.md

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

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

Loading…
Cancel
Save