diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 18:41:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-16 18:41:26 +1200 |
commit | 9cf20b35e1f7cf362590fc7351f7494fccaa3848 (patch) | |
tree | 96f04af7a75cdf842840cbabf40639e6620a298b /check | |
parent | Add self var to rndl(1) (diff) | |
download | dotfiles-9cf20b35e1f7cf362590fc7351f7494fccaa3848.tar.gz dotfiles-9cf20b35e1f7cf362590fc7351f7494fccaa3848.zip |
Check for executability before sh -n
Diffstat (limited to 'check')
-rwxr-xr-x | check/bin | 2 | ||||
-rwxr-xr-x | check/games | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/bin/sh for bin in bin/* ; do - [ -f "$bin" ] || continue + [ -x "$bin" ] || continue hb=$(sed 1q "$bin") || exit case $hb in *bash) diff --git a/check/games b/check/games index 3afe6414..d3b5feac 100755 --- a/check/games +++ b/check/games @@ -1,6 +1,6 @@ #!/bin/sh for game in games/* ; do - [ -f "$game" ] || continue + [ -x "$game" ] || continue hb=$(sed 1q "$game") || exit case $hb in *bash) |