Skip to content

Commit

Permalink
fixing branch to be constant in user data
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Dec 27, 2024
1 parent cc23a5a commit 00452be
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ locals {
git clone https://github.com/jmikedupont2/swarms "/opt/swarms/"
fi
cd "/opt/swarms/" || exit 1
export BRANCH=${var.branch}
git stash
git fetch --all # get the latest version
git checkout --force $BRANCH
git checkout --track --force "origin/${var.branch}"
bash -x ${var.install_script}
EOF
Expand Down

0 comments on commit 00452be

Please sign in to comment.