diff --git a/check_reboot-required b/check_reboot-required index ece562b..af4c6b3 100644 --- a/check_reboot-required +++ b/check_reboot-required @@ -123,7 +123,7 @@ function check_redhat() { fi output_clean=$(needs-restarting -r | xargs) - output=$(needs-restarting -r | xargs) + output=$(needs-restarting -r) if [ $? -eq 0 ]; then echo "No reboot required: ${output_clean}" exit ${OK_EXIT_CODE}