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/bin | |
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/bin')
-rwxr-xr-x | check/bin | 2 |
1 files changed, 1 insertions, 1 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) |