rc-status - hide error message
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-18 08:23:10 +00:00
parent 8dc1814499
commit cc1f1a54e7

View File

@@ -184,7 +184,7 @@ check_dirs_and_files() {
check_running() {
# Custom gentoo docker status check
DOCKERD_STATUS=$($SUDO_CMD rc-status |grep docker |grep started | wc -l);
DOCKERD_STATUS=$($SUDO_CMD rc-status 2>/dev/null | grep docker | grep started | wc -l);
if [ "$DOCKERD_STATUS" == "0" ]; then
DOCKERD_STATUS=$($SUDO_CMD systemctl status docker | grep running | wc -l)