From db9ddb634c401c5c9256416ea9ea9e86a991f817 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Sat, 1 Jun 2024 10:17:52 +0200 Subject: [PATCH] change info to display --- files/os/gmo-cfg.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/os/gmo-cfg.sh b/files/os/gmo-cfg.sh index e703fbd..d66cf51 100644 --- a/files/os/gmo-cfg.sh +++ b/files/os/gmo-cfg.sh @@ -31,14 +31,16 @@ alias mv='mv -i' alias ls='ls --color=auto' alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/environment-variables-sudo/ -if [ ! is_scp ]; then +if ! is_scp; then if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then dist=$(cat /etc/redhat-release) kern=$(uname -r) cat << EOF - +----------------------------------------------------- +Distribution: Rocky Linux release 9.4 (Blue Onyx Distribution: $dist Kernel: $kern +----------------------------------------------------- EOF fi fi