From c14607f3645a07b3ef087b488afc1e126ec56292 Mon Sep 17 00:00:00 2001 From: RussTreadon-NOAA Date: Thu, 20 Jun 2024 14:22:15 +0000 Subject: [PATCH] fix shellcheck error in detect_machine.sh (#2695) --- ush/detect_machine.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ush/detect_machine.sh b/ush/detect_machine.sh index 106d903338..cfd0fa97e2 100755 --- a/ush/detect_machine.sh +++ b/ush/detect_machine.sh @@ -75,7 +75,8 @@ elif [[ -d /scratch1 ]]; then MACHINE_ID=hera elif [[ -d /work ]]; then # We are on MSU Orion or Hercules - if [[ $(findmnt -n -o SOURCE /home) =~ "hercules" ]]; then + mount=$(findmnt -n -o SOURCE /home) + if [[ ${mount} =~ "hercules" ]]; then MACHINE_ID=hercules else MACHINE_ID=orion