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 | |
| set -euo pipefail | |
| #based on https://gist.github.com/aerodomigue/0320ec3dffbc60caeaee8a6fc83cb470, thank you aerodomigue | |
| # --- Safety check: only run on Debian 12 (bookworm) --- | |
| if [ ! -r /etc/os-release ]; then | |
| echo "ERROR: /etc/os-release not found, cannot verify OS. Aborting." >&2 | |
| exit 1 | |
| fi |