The open source coding agent.
TypeScript
fix: use actual version in install script (#7044)
Beryl45fea6587e32
diff --git a/install b/installindex 3b9e6d68c56..757694481c4 100755--- a/install+++ b/install@@ -208,11 +208,8 @@ check_version() {if command -v opencode >/dev/null 2>&1; thenopencode_path=$(which opencode)-- ## TODO: check if version is installed- # installed_version=$(opencode version)- installed_version="0.0.1"- installed_version=$(echo $installed_version | awk '{print $2}')+ ## Check the installed version+ installed_version=$(opencode --version 2>/dev/null || echo "")if [[ "$installed_version" != "$specific_version" ]]; thenprint_message info "${MUTED}Installed version: ${NC}$installed_version."