Skip to content

Commit

Permalink
capitalize var
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-baez committed Nov 1, 2023
1 parent 2d2445d commit d46a28e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crux/main/crux-pssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ sed -n "$(($START+1))"',$p' $HOSTNAME >> tmphost
if [ "$(wc -l < tmphost)" -eq 1 ]; then
host=$(cat tmphost)

if [ "$branch" = "master" ]; then
if [ "$BRANCH" = "master" ]; then
ssh "$host" "git clone https://github.com/CALeDNA/crux.git"
else
ssh "$host" "git clone -b $branch https://github.com/CALeDNA/crux.git"
ssh "$host" "git clone -b $BRANCH https://github.com/CALeDNA/crux.git"
fi

scp "$CONFIG" "$host:/home/$USER/crux/crux/vars/"
Expand All @@ -50,10 +50,10 @@ else
parallel-scp -h tmphost ./.env /home/$USER/crux/tronko/assign/jwt
fi

if [ "$branch" = "master" ]; then
if [ "$BRANCH" = "master" ]; then
parallel-ssh -i -t 0 -h tmphost "git clone https://github.com/CALeDNA/crux.git"
else
parallel-ssh -i -t 0 -h tmphost "git clone -b $branch https://github.com/CALeDNA/crux.git"
parallel-ssh -i -t 0 -h tmphost "git clone -b $BRANCH https://github.com/CALeDNA/crux.git"
fi

parallel-scp -h tmphost $CONFIG /home/$USER/crux/crux/vars/
Expand Down

0 comments on commit d46a28e

Please sign in to comment.