Skip to content

Commit 87e2cea

Browse files
authored
fix install script to respect the chosen remote branch (#203)
1 parent 3d26505 commit 87e2cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-and-launch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ install_sublime() {
444444

445445
if [ "$clone_platform" = "true" ]; then
446446
print_info "Cloning Sublime Platform repo..."
447-
if ! git clone --depth=1 https://github.com/sublime-security/sublime-platform.git; then
447+
if ! git clone -b "$remote_branch" --depth=1 https://github.com/sublime-security/sublime-platform.git; then
448448
print_error "Failed to clone Sublime Platform repo\n"
449449
printf "Troubleshooting tips: https://docs.sublimesecurity.com/docs/quickstart-docker#troubleshooting\n\n"
450450
printf "You may need to run the following command before retrying installation:\n\n"

0 commit comments

Comments
 (0)