fix: use actual version in install script (#7044)
parent
a721810682
commit
45fea6587e
7
install
7
install
|
|
@ -208,11 +208,8 @@ check_version() {
|
||||||
if command -v opencode >/dev/null 2>&1; then
|
if command -v opencode >/dev/null 2>&1; then
|
||||||
opencode_path=$(which opencode)
|
opencode_path=$(which opencode)
|
||||||
|
|
||||||
|
## Check the installed version
|
||||||
## TODO: check if version is installed
|
installed_version=$(opencode --version 2>/dev/null || echo "")
|
||||||
# installed_version=$(opencode version)
|
|
||||||
installed_version="0.0.1"
|
|
||||||
installed_version=$(echo $installed_version | awk '{print $2}')
|
|
||||||
|
|
||||||
if [[ "$installed_version" != "$specific_version" ]]; then
|
if [[ "$installed_version" != "$specific_version" ]]; then
|
||||||
print_message info "${MUTED}Installed version: ${NC}$installed_version."
|
print_message info "${MUTED}Installed version: ${NC}$installed_version."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue