GeezerVison is showing github.com — fix: install script didnt use -e flag (#2009) · Rots/opencode@664d826
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: install +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -36,7 +36,7 @@ case "$filename" in |
36 | 36 | [[ "$arch" == "x64" ]] || exit 1 |
37 | 37 | ;; |
38 | 38 | *) |
39 | | - echo "${RED}Unsupported OS/Arch: $os/$arch${NC}" |
| 39 | + echo -e "${RED}Unsupported OS/Arch: $os/$arch${NC}" |
40 | 40 | exit 1 |
41 | 41 | ;; |
42 | 42 | esac |
@@ -49,7 +49,7 @@ if [ -z "$requested_version" ]; then |
49 | 49 | specific_version=$(curl -s https://api.github.com/repos/sst/opencode/releases/latest | awk -F'"' '/"tag_name": "/ {gsub(/^v/, "", $4); print $4}') |
50 | 50 |
|
51 | 51 | 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}" |
53 | 53 | exit 1 |
54 | 54 | fi |
55 | 55 | else |
@@ -96,7 +96,7 @@ download_and_install() { |
96 | 96 | curl -# -L -o "$filename" "$url" |
97 | 97 | unzip -q "$filename" |
98 | 98 | mv opencode "$INSTALL_DIR" |
99 | | - cd .. && rm -rf opencodetmp |
| 99 | + cd .. && rm -rf opencodetmp |
100 | 100 | } |
101 | 101 |
|
102 | 102 | check_version |
|