I think there is a missing space in the arm and mips version in chapter
6.4 Build variables
if [ "${CLFS_ENDIAN}" = "LITTLE"]; then
Between " and ] there should bee a space to avoid getting this message:
bash: [: missing `]'
Regards
Nicholai Vesterløkke