diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 17:18:20 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 17:18:20 +1200 |
commit | 56fbfe7ec118f737be07ff9b80182706fe7dfd12 (patch) | |
tree | 2f2b9feda82215b944fdd20416bf6858549ed04c /lint | |
parent | Spruce up lint-bin and lint-games scripts (diff) | |
download | dotfiles-56fbfe7ec118f737be07ff9b80182706fe7dfd12.tar.gz dotfiles-56fbfe7ec118f737be07ff9b80182706fe7dfd12.zip |
Restore -f test rather than -e test
Because it prevents testing directories, of course
Diffstat (limited to 'lint')
-rwxr-xr-x | lint/bin | 2 | ||||
-rwxr-xr-x | lint/games | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/bin/sh for bin in games/* ; do - [ -e "$bin" ] || continue + [ -f "$bin" ] || continue hb=$(sed 1q "$bin") || exit case $hb in *sh) @@ -1,6 +1,6 @@ #!/bin/sh for game in games/* ; do - [ -e "$game" ] || continue + [ -f "$game" ] || continue hb=$(sed 1q "$game") || exit case $hb in *sh) |