+check_spaces_eol () {
+ folder="$1"
+ spaces_eol="y"
+ ! grep -ri " $" ${folder} && spaces_eol=""
+ [ -n "${spaces_eol}" ] && \
+ echo "Some files in ${folder} have spaces at the end of some lines" && \
+ echo "Use this command to change it:" && \
+ echo " sed -i 's/ *$//g' <FILENAME>" && \
+ exit 1
+}
+