comparison bin/cek @ 609:7f5234a312f7

Cleanup style
author nanaya <me@nanaya.pro>
date Fri, 07 Jul 2017 19:35:52 +0900
parents 08d5f6023998
children
comparison
equal deleted inserted replaced
608:f894f33a762c 609:7f5234a312f7
42 "nofile") ret="not a file or unreadable";; 42 "nofile") ret="not a file or unreadable";;
43 "nocrc") ret="${crc}";; 43 "nocrc") ret="${crc}";;
44 "fileok") ret="${crc} - OK!";; 44 "fileok") ret="${crc} - OK!";;
45 "filerr") ret="${crc} - ERROR - should be ${filecrc}";; 45 "filerr") ret="${crc} - ERROR - should be ${filecrc}";;
46 esac 46 esac
47 printf "%s\n" "${file}: ${ret}" 47 printf '%s\n' "${file}: ${ret}"
48 done 48 done
49 echo "--------------------------------" 49 echo "--------------------------------"
50 [ "${file_ok}" -gt 0 ] && echo "Files ok: ${file_ok}" 50 [ "${file_ok}" -gt 0 ] && echo "Files ok: ${file_ok}"
51 [ "${file_err}" -gt 0 ] && echo "Files broken: ${file_err}" 51 [ "${file_err}" -gt 0 ] && echo "Files broken: ${file_err}"
52 [ "${file_nocrc}" -gt 0 ] && echo "Files without crc information: ${file_nocrc}" 52 [ "${file_nocrc}" -gt 0 ] && echo "Files without crc information: ${file_nocrc}"