#!/bin/zsh local single_script_filter="" while [[ $# > 0 ]]; do single_script_filter="$1" # if using param, export BOX_SETUP_OS first if needed shift done echo "---- installing programs ----------------------" local scripts=$(find ./installs_and_builds -maxdepth 1 -mindepth 1 -type f | sort) for script in ${=scripts}; do if [[ -x $script ]]; then if echo "$script" | grep -qv "$single_script_filter"; then continue # $single_script_filter set, ignore others fi echo "executing: $script" ./$script fi done