diff --git a/ce/03_no-cores.sh b/ce/03_no-cores.sh index bfdbae3..1134b20 100755 --- a/ce/03_no-cores.sh +++ b/ce/03_no-cores.sh @@ -1,13 +1,14 @@ #!/bin/bash SYSCTL="/sbin/sysctl" CORE_DIR=$(dirname $(${SYSCTL} kernel.core_pattern | awk '{print $3}'| sed -e "s_'__g")) +CORE_FILES=$(ls -1 -m ${CORE_DIR}) NUM_FILES=$(ls -1 ${CORE_DIR}|wc -l) echo "1..1" if [ -d ${CORE_DIR} ]; then if [[ $NUM_FILES > 0 ]]; then - echo "not ok 1 - ${CORE_DIR} not empty" + echo "not ok 1 - ${CORE_DIR} not empty: ${CORE_FILES}" else echo "ok 1 - ${CORE_DIR} empty" fi