Skip to content

Commit

Permalink
fix shellcheck error in detect_machine.sh (NOAA-EMC#2695)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Jun 20, 2024
1 parent 826c3c3 commit c14607f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ush/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c14607f

Please sign in to comment.