fix param hostname

This commit is contained in:
Gilles Mouchet 2024-06-09 18:46:33 +02:00
parent f35d64b9e1
commit 1b9d54ae8b

View File

@ -34,7 +34,7 @@ alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/env
if ! is_scp; then
if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
host_fqdn=$(hostname)
host_shot=$(hostname s)
host_shot=$(hostname -s)
ip=$(hostname -I)
dist=$(cat /etc/redhat-release)
kern=$(uname -r)