Welcome to FreeSoftwareServers Confluence Wiki

#!/bin/bash
x=$(systemctl is-active hassio-supervisor | grep -w failed)
echo "x=${x}"
while true ; do
  echo "In While Loop"
 if [ "${x}" = "failed" ] ; then
  echo "breaking"
  break
 fi
break
done
  • No labels