aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-05-02 14:52:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-05-02 14:52:00 +1200
commit969deb4e4fff58cb54cd40932e4d117fe3b99a9d (patch)
tree8396b9550e0889d84a4109ee0e5eaf88edbf7149 /Makefile
parentExtend "test" target for make (diff)
downloaddotfiles-969deb4e4fff58cb54cd40932e4d117fe3b99a9d.tar.gz
dotfiles-969deb4e4fff58cb54cd40932e4d117fe3b99a9d.zip
Fix many errors in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3ab02cde..36293fc6 100644
--- a/Makefile
+++ b/Makefile
@@ -159,11 +159,11 @@ test-bash :
test-bin :
@for bin in $(PWD)/bin/* ; do \
- if sed 1q "$$bin"" | grep -q bash && ! bash -n "$$bin" ; then \
- exit 1 ; \
- elsif sed 1q "$$bin"" | grep -q sh && ! sh -n "$$sh" ; then \
- exit 1 ; \
+ if sed 1q "$$bin" | grep -q bash ; then \
+ bash -n "$$bin" || exit 1 ; \
+ elif sed 1q "$$bin" | grep -q sh ; then \
+ sh -n "$$bin" || exit 1 ; \
fi ; \
done
- @echo "All shell scripts in /bin/ parsed successfully."
+ @echo "All shell scripts in bin parsed successfully."