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 | |
| if [ "$EUID" -eq 0 ]; then | |
| echo "Do not run this script as root. Run it as your normal user." | |
| exit | |
| fi | |
| # Use absolute path for HOME to ensure consistency | |
| HOME_DIR="/home/$USER" | |
| LOCAL_SHARE="$HOME_DIR/.local/share" |
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 | |
| # Stop script on error | |
| set -e | |
| # Ensure the script is running as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run as root" | |
| exit | |
| fi |
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 | |
| # ========================================== | |
| # CONFIGURATION | |
| # ========================================== | |
| # !!! IMPORTANT: CHANGE THIS TO YOUR DRIVE !!! | |
| # Examples: /dev/sda , /dev/nvme0n1 | |
| DISK="/dev/sda" | |
| echo "=============================================" |