From ea02ee5f0c6a977ba18d457175c23774690cfc38 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Wed, 28 May 2025 23:02:02 -0700 Subject: Working dotfiles! --- home/scripts/system_name.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'home/scripts') diff --git a/home/scripts/system_name.sh b/home/scripts/system_name.sh index 92b714a..2625293 100755 --- a/home/scripts/system_name.sh +++ b/home/scripts/system_name.sh @@ -1,11 +1,11 @@ #!/bin/sh -platform="$(platform.sh)" +PLATFORM="${PLATFORM:-`platform.sh`}" MACHINE="$HOST" -if [ "$platform" = "osx" ]; then +if [ "$PLATFORM" = "osx" ]; then MACHINE="$(scutil --get ComputerName)" -elif [ "$platform" = "linux" ]; then +elif [ "$PLATFORM" = "linux" ]; then MACHINE="$(cat /proc/sys/kernel/hostname)" fi -- cgit v1.2.3-70-g09d2