]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add a helpful error message
authorMatthias Maier <tamiko@43-1.org>
Fri, 8 May 2020 03:02:37 +0000 (22:02 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 8 May 2020 03:02:37 +0000 (22:02 -0500)
contrib/utilities/query_testsuite

index b69414c2816db174026b95e13c48a16b26b9041e..ce5b6dea38a451fd84a0250a5930362e2331a5fe 100755 (executable)
@@ -51,6 +51,12 @@ until [[ "$*" == "" ]]; do
   shift
 done
 
+if [ -z "$(command -v jq)" ]; then
+  echo "Error: need jq executable in path"
+  echo "Please install jq (sudo apt install jq, sudo yum install jq)"
+  exit 1
+fi
+
 query_testsuite() {
 
   echo "| Host | Configuration | Commit | Build errors | Build warnings | Failing tests | Passing tests |"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.