From 56fbfe7ec118f737be07ff9b80182706fe7dfd12 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 2 Aug 2016 17:18:20 +1200 Subject: Restore -f test rather than -e test Because it prevents testing directories, of course --- lint/bin | 2 +- lint/games | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lint') diff --git a/lint/bin b/lint/bin index c5729fdb..a126a822 100755 --- a/lint/bin +++ b/lint/bin @@ -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) diff --git a/lint/games b/lint/games index 6deac3b1..ef451f4e 100755 --- a/lint/games +++ b/lint/games @@ -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) -- cgit v1.2.3