diff --git a/pki/icinga2-setup-agent.cmake b/pki/icinga2-setup-agent.cmake index ffc6b124e..6e5ef65f5 100644 --- a/pki/icinga2-setup-agent.cmake +++ b/pki/icinga2-setup-agent.cmake @@ -14,7 +14,7 @@ if [ -n "$1" ]; then exit 1 fi - if ! base64 -d $1 2>/dev/null; then + if ! base64 -d $1 >/dev/null 2>&1; then echo "The bundle file is invalid or corrupted." exit 1 fi