Loesung des Praktikums Systementwurf - Bjarne Hoesch - Bernhard Schoeffel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

execute_and_highlight.sh 268B

1234567891011121314
  1. #!/bin/bash
  2. script_path="$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )"
  3. if [ $# -lt 1 ]
  4. then
  5. echo " usage: execute_and_highlight command arguments"
  6. exit 1
  7. fi
  8. cmd=$1
  9. shift 1
  10. $cmd $@ | $script_path/highlight_test_results.sh
  11. test ${PIPESTATUS[0]} -eq 0