From 303f3bc9bcdfe7ac6a933e9cd7af44f956cd5fd9 Mon Sep 17 00:00:00 2001
From: Matthew K Defenderfer <mdefende@uab.edu>
Date: Mon, 16 Sep 2024 11:44:55 -0500
Subject: [PATCH] replace backticks and set quotes for strings

---
 src/run-policy/run-mmpol.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/run-policy/run-mmpol.sh b/src/run-policy/run-mmpol.sh
index 13cd12b..700f0f0 100755
--- a/src/run-policy/run-mmpol.sh
+++ b/src/run-policy/run-mmpol.sh
@@ -96,10 +96,10 @@ if [[ -z "${output_log_prefix}" ]]; then
 fi
 
 # create temporary working directory for list aggregation
-tmpglobal=${outdir}/slurm-tmp-${SLURM_JOBID}
-tmpscratch=${outdir}/slurm-tmp-${SLURM_JOBID}
+tmpglobal="${outdir}/slurm-tmp-${SLURM_JOBID}"
+tmpscratch="${outdir}/slurm-tmp-${SLURM_JOBID}"
 
-nodes=`scontrol show hostnames "${SLURM_JOB_NODELIST}" | tr '\n' ',' | sed -e 's/,$//'`
+nodes=$(scontrol show hostnames "${SLURM_JOB_NODELIST}" | tr '\n' ',' | sed -e 's/,$//')
 cores="${SLURM_CPUS_PER_TASK}"
 
 DATESTR=$(date +'%Y%m%dT%H%M%S')
-- 
GitLab