diff options
| author | Beryl <[email protected]> | 2026-01-06 12:26:44 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-05 23:26:44 -0600 |
| commit | 45fea6587e32eb578f0cc563a15345905c619b0d (patch) | |
| tree | 50368f91314ce2625498441390c6b7a599d4fc9f | |
| parent | a7218106826b3df00a18525d380985fd038a0c6d (diff) | |
| download | opencode-45fea6587e32eb578f0cc563a15345905c619b0d.tar.gz opencode-45fea6587e32eb578f0cc563a15345905c619b0d.zip | |
fix: use actual version in install script (#7044)
| -rwxr-xr-x | install | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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." |
