Skip to content

Instantly share code, notes, and snippets.

@BernhardRode
Created October 20, 2025 16:47
Show Gist options
  • Save BernhardRode/00dfec4e162febfef68c018bb74b9a4f to your computer and use it in GitHub Desktop.
Save BernhardRode/00dfec4e162febfef68c018bb74b9a4f to your computer and use it in GitHub Desktop.
#!/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