mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Fix opencode install script handling for latest version
This commit is contained in:
1 parent
213cd66cae
commit
74608a7e2a
1 file changed
+5
-1
+5
-1
@@ -65,7 +65,11 @@ RUN echo "Installing uv=${UV_VERSION} opencode=${OPENCODE_VERSION}" && \
|
||||
mv /root/.local/bin/uv /usr/local/bin/uv && \
|
||||
mv /root/.local/bin/uvx /usr/local/bin/uvx && \
|
||||
chmod +x /usr/local/bin/uv /usr/local/bin/uvx && \
|
||||
curl -fsSL https://opencode.ai/install | bash -s -- --version ${OPENCODE_VERSION} --no-modify-path && \
|
||||
if [ "${OPENCODE_VERSION}" = "latest" ]; then \
|
||||
curl -fsSL https://opencode.ai/install | bash -s -- --no-modify-path; \
|
||||
else \
|
||||
curl -fsSL https://opencode.ai/install | bash -s -- --version ${OPENCODE_VERSION} --no-modify-path; \
|
||||
fi && \
|
||||
mv /root/.opencode /opt/opencode && \
|
||||
chmod -R 755 /opt/opencode && \
|
||||
ln -s /opt/opencode/bin/opencode /usr/local/bin/opencode
|
||||
|
||||
Reference in new issue
Block a user