Skip to content

Commit 664d826

Browse files
authored
fix: install script didnt use -e flag (sst#2009)
1 parent 1e204c2 commit 664d826

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ case "$filename" in
3636
[[ "$arch" == "x64" ]] || exit 1
3737
;;
3838
*)
39-
echo "${RED}Unsupported OS/Arch: $os/$arch${NC}"
39+
echo -e "${RED}Unsupported OS/Arch: $os/$arch${NC}"
4040
exit 1
4141
;;
4242
esac
@@ -49,7 +49,7 @@ if [ -z "$requested_version" ]; then
4949
specific_version=$(curl -s https://api.github.com/repos/sst/opencode/releases/latest | awk -F'"' '/"tag_name": "/ {gsub(/^v/, "", $4); print $4}')
5050

5151
if [[ $? -ne 0 || -z "$specific_version" ]]; then
52-
echo "${RED}Failed to fetch version information${NC}"
52+
echo -e "${RED}Failed to fetch version information${NC}"
5353
exit 1
5454
fi
5555
else
@@ -96,7 +96,7 @@ download_and_install() {
9696
curl -# -L -o "$filename" "$url"
9797
unzip -q "$filename"
9898
mv opencode "$INSTALL_DIR"
99-
cd .. && rm -rf opencodetmp
99+
cd .. && rm -rf opencodetmp
100100
}
101101

102102
check_version

0 commit comments

Comments
 (0)