summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 15:11:00 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 15:11:00 -0500
commit2dc17ffc2a00a3c1464a988caa9897176017d0af (patch)
tree6bb259873a85207bcce0388bd10545b9319ef04e /run
parent30eb697f37dc81786163398fa52e7dfdf8c1d139 (diff)
Some macOS support
Diffstat (limited to 'run')
-rwxr-xr-xrun6
1 files changed, 5 insertions, 1 deletions
diff --git a/run b/run
index 8cd3d61..162cef7 100755
--- a/run
+++ b/run
@@ -17,7 +17,11 @@ done
log "$script_dir -- $filter"
cd $script_dir
-scripts="$(find ./runs -maxdepth 1 -mindepth 1 -executable -type f)"
+if [[ "$(uname -s)" == "Darwin" ]]; then
+ scripts="$(find ./runs -maxdepth 1 -mindepth 1 -perm +111 -type f)"
+else
+ scripts="$(find ./runs -maxdepth 1 -mindepth 1 -executable -type f)"
+fi
for script in $scripts; do
if echo "$script" | grep -qv "$filter"; then
log "filtering $script"