From 238e133c0aceb97cdd2789920202eecdc67eeba7 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 22 Feb 2025 12:32:45 -0500 Subject: Ghostty Config --- run | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'run') diff --git a/run b/run index 162cef7..d675d40 100755 --- a/run +++ b/run @@ -7,25 +7,25 @@ filter="" script_dir=${0:a:h} while [[ $# -gt 0 ]]; do - if [[ "$1" == "--dry" ]]; then - dry="1" - else - filter="$1" - fi - shift + if [[ "$1" == "--dry" ]]; then + dry="1" + else + filter="$1" + fi + shift done log "$script_dir -- $filter" cd $script_dir if [[ "$(uname -s)" == "Darwin" ]]; then - scripts="$(find ./runs -maxdepth 1 -mindepth 1 -perm +111 -type f)" + scripts="$(find ./runs -maxdepth 1 -mindepth 1 -perm +111 -type f)" else - scripts="$(find ./runs -maxdepth 1 -mindepth 1 -executable -type f)" + 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" - continue - fi - execute ./$script + if echo "$script" | grep -qv "$filter"; then + log "filtering $script" + continue + fi + execute ./$script done -- cgit v1.2.3