summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdev-env6
-rwxr-xr-xrun6
2 files changed, 10 insertions, 2 deletions
diff --git a/dev-env b/dev-env
index 1269ddd..081a6e0 100755
--- a/dev-env
+++ b/dev-env
@@ -12,7 +12,11 @@ done
cd $target/dotfiles
log "Copying Scripts"
-scripts="$(find ./scripts -maxdepth 1 -mindepth 1 -executable -type f)"
+if [[ "$(uname -s)" == "Darwin" ]]; then
+ scripts="$(find ./scripts -maxdepth 1 -mindepth 1 -perm +111 -type f)"
+else
+ scripts="$(find ./scripts -maxdepth 1 -mindepth 1 -executable -type f)"
+fi
for script in $scripts; do
log $script
copy_file "$script" "$target/bin"
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"