This repository contains various bash scripts to automate common tasks and workflows on macOS. Each script is organized by category and designed to streamline repetitive processes with colorful, user-friendly output.
Scripts for SD card management and preparation on macOS.
erase-disk.sh- SD card eraser and formatter with safety checks
� View detailed documentation →
System monitoring, diagnostics, and log analysis tools.
health-check.sh- Comprehensive system health monitoringlog-analyzer.sh- System log analysis and error detection
� View detailed documentation →
-
Clone this repository:
git clone https://github.com/neverovski/bash-scripts.git cd bash-scripts -
Make scripts executable:
chmod +x sd-card/*.sh chmod +x system/*.sh
-
Review and customize script variables before running
- Each script contains configuration variables at the top
- Update device paths, thresholds, and other settings as needed
- Always review script contents before execution
- Ensure you have necessary permissions (sudo when required)
- Backup important data before running destructive operations
- Test scripts in safe environments first
- Check device paths and configurations before running
- Use
--helpflag to see available options for each script
When adding new scripts, use this template:
#!/bin/bash
# Script: [Script Name]
# Description: [Brief description of what the script does]
# Author: [Your name]
# Date: [Creation date]
# Add safety checks
set -e # Exit on error
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color
# Configuration
# [Add your configuration variables here]
# [Your script logic here]Happy to get your feedback! Feel free to:
- Report bugs or issues
- Suggest new features or improvements
- Submit pull requests
- Improve documentation
This project is licensed under the MIT License. See the LICENSE file for details.