Skip to content

Commit 957bef3

Browse files
committed
updated cooley and theta installation
1 parent 010124c commit 957bef3

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

install/cooley.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ BASHRC_COOLEY=~/.bashrc_cooley
2323

2424
read -r -d '' NEW_BASHRC_CONTENT <<- EOM
2525
# Added by DeepHyper
26-
if [[ $HOSTNAME = *"cooley"* ]]; then
26+
if [[ $(echo '$HOSTNAME') = *"cooley"* ]]; then
27+
source ~/.bashrc_cooley
28+
fi
29+
30+
if [[ $(echo '$HOSTNAME') = *"cc"* ]]; then
2731
source ~/.bashrc_cooley
2832
fi
2933
EOM
@@ -40,4 +44,4 @@ fi
4044
echo "Adding new lines to $BASHRC_COOLEY"
4145
echo "# Added by DeepHyper" >> $BASHRC_COOLEY
4246
echo "source $PWD/miniconda/bin/activate" >> $BASHRC_COOLEY
43-
echo "export PATH=$PWD/pgsql/bin:$PATH" >> $BASHRC_COOLEY
47+
echo "export PATH=$PWD/pgsql/bin:"'$PATH' >> $BASHRC_COOLEY

install/theta.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BASHRC_THETA=~/.bashrc_theta
1515

1616
read -r -d '' NEW_BASHRC_CONTENT <<- EOM
1717
# Added by DeepHyper
18-
if [[ $HOSTNAME = *"thetalogin"* ]]; then
18+
if [[ $(echo '$HOSTNAME') = *"thetalogin"* ]]; then
1919
source ~/.bashrc_theta
2020
fi
2121
EOM

0 commit comments

Comments
 (0)