Update package-rhel.sh

pull/7796/head
JieXu 2025-08-18 22:25:13 +08:00 committed by GitHub
parent 5b870fbb91
commit ad61dee3d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
# ===== Require RHEL/Rocky/Alma/CentOS OR Ubuntu/Debian =========================
# ===== Require Red Hat Enterprise Linux/RockyLinux/AlmaLinux/CentOS OR Ubuntu/Debian ====
if [[ -r /etc/os-release ]]; then
. /etc/os-release
case "$ID" in
@ -10,7 +10,7 @@ if [[ -r /etc/os-release ]]; then
;;
*)
echo "[ERROR] Unsupported system: $NAME ($ID)."
echo "This script only supports RHEL/Rocky/Alma/CentOS or Ubuntu/Debian."
echo "This script only supports Red Hat Enterprise Linux/RockyLinux/AlmaLinux/CentOS or Ubuntu/Debian."
exit 1
;;
esac