shelllings |
git clone https://git.davidvoz.net/shelllings.git
|
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -eu |
| 4 | RED="\033[31m" |
| 5 | GREEN="\033[32m" |
| 6 | RESET="\033[0m" |
| 7 | |
| 8 | sh exercises/05_creating.sh |
| 9 | |
| 10 | if find . -mindepth 4 -type f -name file | grep -q .; then |
| 11 | printf "${GREEN}Passed${RESET}\n" |
| 12 | else |
| 13 | printf "${RED}Failed${RESET}\n" |
| 14 | exit 1 |
| 15 | fi |