which -> null

This commit is contained in:
2024-01-09 12:08:57 +00:00
parent 75ddf1124a
commit cd75431a03

View File

@@ -191,7 +191,7 @@ check_running() {
DOCKERD_STATUS="0"; DOCKERD_STATUS="0";
which systemctl > /dev/null; which systemctl 2> /dev/null;
if [ "$?" == "0" ]; then if [ "$?" == "0" ]; then
DOCKERD_STATUS=$($SUDO_CMD systemctl status docker | grep running | wc -l) DOCKERD_STATUS=$($SUDO_CMD systemctl status docker | grep running | wc -l)