From f894e0d7bb719858cca2a6efb9c557cb44b88634 Mon Sep 17 00:00:00 2001 From: caes Date: Thu, 4 Aug 2016 14:31:43 -0400 Subject: [PATCH] hostname detection added --- scripts/analyze_lightcurves.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/analyze_lightcurves.sh b/scripts/analyze_lightcurves.sh index 165c182..8928cbb 100755 --- a/scripts/analyze_lightcurves.sh +++ b/scripts/analyze_lightcurves.sh @@ -19,7 +19,14 @@ esac mkdir -p analyses -if [[ $1 == "thor" ]] +host=$1 + +if [[ "$(hostname)" == "thor.cs.wmich.edu" ]] +then + host="thor" +fi + +if [[ $host == "thor" ]] then echo Setting up Thor environment. mkdir -p thor @@ -114,7 +121,7 @@ do echo -n "1000 50 400 mcmc_${echo_band}.dat" >> tmp.psdlagargs # Run psdlag with inputs - if [[ $1 == "thor" || "$(hostname)" == "thor.cs.wmich.edu" ]] + if [[ $host == "thor" || "$(hostname)" == "thor.cs.wmich.edu" ]] then echo_band_noUTF=$(echo $echo_band| #sed 's|𝛌||g'|