#!/usr/bin/env bash set -euo pipefail if [[ -z "${DOTFILE_DIR:-}" ]]; then export DOTFILE_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) fi script_dir="$script_dir/installer" shopt -s nullglob ran_any=false for script in "$script_dir"/*.sh; do if [[ -f "$script" && -x "$script" ]]; then "$script" ran_any=true fi done if ! $ran_any; then echo "No executable .sh scripts found in $script_dir" fi