diff --git a/bin/check.sh b/bin/check.sh index 2129e7e0..7c8630bd 100755 --- a/bin/check.sh +++ b/bin/check.sh @@ -633,7 +633,9 @@ else if [ -d "${KAM_DIR}/${NAME_CHECK}" ] ; then for i in "${KAM_DIR}/${NAME_CHECK}"/*.json ; do expand -t1 "$i" > "${LOG_DIR}/$(printf '%04d.json' "$(basename "$i" .json)")" + rm "$i" done + rmdir "${KAM_DIR:?}/${NAME_CHECK:?}" else echo "no cfgt files found" fi