diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-05-02 14:52:00 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-05-02 14:52:00 +1200 |
commit | 969deb4e4fff58cb54cd40932e4d117fe3b99a9d (patch) | |
tree | 8396b9550e0889d84a4109ee0e5eaf88edbf7149 /Makefile | |
parent | Extend "test" target for make (diff) | |
download | dotfiles-969deb4e4fff58cb54cd40932e4d117fe3b99a9d.tar.gz dotfiles-969deb4e4fff58cb54cd40932e4d117fe3b99a9d.zip |
Fix many errors in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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." |