Skip to content

The open alternative to Salesforce, designed for AI.

Update install.sh (#7973)

shubham yadavec0250616ed0
diff --git a/install.sh b/install.sh
index 39eb096b8e2..af3f40a46eb 100755
--- a/install.sh
+++ b/install.sh
@@ -45,7 +45,7 @@ trap on_exit EXIT
# Use environment variables VERSION and BRANCH, with defaults if not set
version=${VERSION:-$(curl -s https://api.github.com/repos/twentyhq/twenty/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)}
-branch=${BRANCH:-main}
+branch=${BRANCH:-$version}
echo "πŸš€ Using version $version and branch $branch"
@@ -72,7 +72,7 @@ done
echo "πŸ“ Creating directory '$dir_name'"
mkdir -p "$dir_name" && cd "$dir_name" || { echo "❌ Failed to create/access directory '$dir_name'"; exit 1; }
-# Copy the twenty/packages/twenty-docker/docker-compose.yml file in it
+# Copy twenty/packages/twenty-docker/docker-compose.yml in it
echo -e "\tβ€’ Copying docker-compose.yml"
curl -sLo docker-compose.yml https://raw.githubusercontent.com/twentyhq/twenty/$branch/packages/twenty-docker/docker-compose.yml