aboutsummaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 18:41:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 18:41:26 +1200
commit9cf20b35e1f7cf362590fc7351f7494fccaa3848 (patch)
tree96f04af7a75cdf842840cbabf40639e6620a298b /check
parentf74c2fc0c45bc7d5f615628230c0660795033fde (diff)
downloaddotfiles-9cf20b35e1f7cf362590fc7351f7494fccaa3848.tar.gz
Check for executability before sh -n
Diffstat (limited to 'check')
-rwxr-xr-xcheck/bin2
-rwxr-xr-xcheck/games2
2 files changed, 2 insertions, 2 deletions
diff --git a/check/bin b/check/bin
index a4d5e452..2fc4e767 100755
--- a/check/bin
+++ b/check/bin
@@ -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)