]> granicus.if.org Git - fortune-mod/commitdiff
Add another sanity check.
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 2 Apr 2016 21:09:26 +0000 (00:09 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 2 Apr 2016 21:09:26 +0000 (00:09 +0300)
fortune-mod/datfiles/Makefile

index 58254858bfb157508940c493d3a2e25e82f557e5..16673955711786b8c347fe764e8ceb83de4f2464 100644 (file)
@@ -26,6 +26,11 @@ check:
                                echo "Fortune cookie file contains a line longer than 78 characters"; \
                                exit 1; \
                        fi; \
+                       if egrep -q "`printf "\\r"`" $$i ; then \
+                               echo " failed lack of carriage-return check"; \
+                               echo "Fortune cookie file contains a CR"; \
+                               exit 1; \
+                       fi; \
                        echo " passed " ;\
                done;