diff --git a/README.md b/README.md index ffb5001..d07bf46 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # JanusXR cli -Swiss-army knife to automate janusXR / JML things. +Swiss-army knife to automate janusXR / JML things on a server # Usage +> check for broken links + ``` $ ./janusxr --health http://localhost:8790/models/m5gr26w0wqqs @@ -28,4 +30,5 @@ $ ./janusxr --health http://localhost:8790/models/m5gr26w0wqqs Why not some superfancy scripting for this task? * awk is great for all things text and templating usecases -* lightweight +* dependencyfree +* lightweight to add to docker-image for automation diff --git a/janusxr b/janusxr index d751f8a..837825f 100755 --- a/janusxr +++ b/janusxr @@ -58,5 +58,6 @@ function health( tmpfile, line, attr, check, u) { nlinks+=1 } print "⚕️ health: "(( 100/nlinks )*nlinksok)"%" + if( nlinks != nlinksok ) exit(1) }