Created
October 20, 2025 16:47
-
-
Save BernhardRode/00dfec4e162febfef68c018bb74b9a4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Directory containing your shell scripts | |
| SCRIPT_DIR="/home/ebbo/.local/share/omarchy/migrations/" # Change this to the desired folder path if needed. | |
| # Go to the script directory | |
| cd "$SCRIPT_DIR" || { | |
| echo "Directory not found: $SCRIPT_DIR" | |
| exit 1 | |
| } | |
| # Make all .sh files executable | |
| chmod +x *.sh 2>/dev/null | |
| # Loop through each .sh file and execute it | |
| for script in *.sh; do | |
| if [[ -f "$script" ]]; then | |
| echo " Running: $script" | |
| bash "$script" | |
| echo " Finished: $script" | |
| echo "-----------------------------" | |
| fi | |
| done | |
| echo " All scripts executed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment