]> code.delx.au - monosys/blobdiff - healthcheck/run-all
healthcheck don't use hostname command
[monosys] / healthcheck / run-all
index 0cb46ff022006596fde902aff9067fbf247e360d..e5a12c3a1cfeffe39fe672a51920a8183b298579 100755 (executable)
@@ -1,15 +1,15 @@
 #!/bin/bash
 
-set -eu
-
 . /etc/os-release
+. ~/.bashrc
 
+set -eu
 cd "$(dirname "$(readlink -f "$0")")"
 
 for i in ./*; do
     if [ "$(basename "$i")" != "$(basename "$0")" ]; then
         if ! "$i"; then
-            echo -e "\n^^ FAILED! $(hostname) $PRETTY_NAME -- $i ^^\n"
+            echo -e "\n^^ FAILED! $(cat /etc/hostname) $PRETTY_NAME -- $i ^^\n"
             exit 1
         fi
     fi