mirror of
https://github.com/sst/opencode.git
synced 2025-08-22 14:04:07 +00:00
fix: install script didnt use -e flag (#2009)
This commit is contained in:
parent
1e204c23b9
commit
664d826642
1 changed files with 3 additions and 3 deletions
4
install
4
install
|
@ -36,7 +36,7 @@ case "$filename" in
|
|||
[[ "$arch" == "x64" ]] || exit 1
|
||||
;;
|
||||
*)
|
||||
echo "${RED}Unsupported OS/Arch: $os/$arch${NC}"
|
||||
echo -e "${RED}Unsupported OS/Arch: $os/$arch${NC}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
@ -49,7 +49,7 @@ if [ -z "$requested_version" ]; then
|
|||
specific_version=$(curl -s https://api.github.com/repos/sst/opencode/releases/latest | awk -F'"' '/"tag_name": "/ {gsub(/^v/, "", $4); print $4}')
|
||||
|
||||
if [[ $? -ne 0 || -z "$specific_version" ]]; then
|
||||
echo "${RED}Failed to fetch version information${NC}"
|
||||
echo -e "${RED}Failed to fetch version information${NC}"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue