diff --git a/bin/check_last_login.sh b/bin/check_last_login.sh index f361389..19cee05 100755 --- a/bin/check_last_login.sh +++ b/bin/check_last_login.sh @@ -73,8 +73,10 @@ for user in $(cat /etc/group|grep "${ssh_group}:" | cut -d ":" -f 4 | sed -e 's/ fi; printf "* Checking user %-20s: %s\n" "${user}" "${out_string}"; done; -echo "--------------------->" -echo ${delete_accounts}; +if [ ! -z "${delete_accounts}" ]; then + echo "--------------------->" + echo ${delete_accounts}; +fi; echo "[END] ===============>" # __END__