summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBeryl <[email protected]>2026-01-06 12:26:44 +0700
committerGitHub <[email protected]>2026-01-05 23:26:44 -0600
commit45fea6587e32eb578f0cc563a15345905c619b0d (patch)
tree50368f91314ce2625498441390c6b7a599d4fc9f
parenta7218106826b3df00a18525d380985fd038a0c6d (diff)
downloadopencode-45fea6587e32eb578f0cc563a15345905c619b0d.tar.gz
opencode-45fea6587e32eb578f0cc563a15345905c619b0d.zip
fix: use actual version in install script (#7044)
-rwxr-xr-xinstall7
1 files changed, 2 insertions, 5 deletions
diff --git a/install b/install
index 3b9e6d68c..757694481 100755
--- a/install
+++ b/install
@@ -208,11 +208,8 @@ check_version() {
if command -v opencode >/dev/null 2>&1; then
opencode_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" ]]; then
print_message info "${MUTED}Installed version: ${NC}$installed_version."