File tree 1 file changed +17
-8
lines changed
1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -100,21 +100,23 @@ echo_standalone_postinstall() {
100
100
101
101
cath << EOF
102
102
103
- Standalone release has been installed into $STANDALONE_INSTALL_PREFIX /bin/$STANDALONE_BINARY_NAME
103
+ Coder has been installed to
104
+
105
+ $STANDALONE_INSTALL_PREFIX /bin/$STANDALONE_BINARY_NAME
104
106
105
107
EOF
106
108
107
- CODER_COMMAND=" $( command -v " $STANDALONE_BINARY_NAME " ) "
109
+ CODER_COMMAND=" $( command -v " $STANDALONE_BINARY_NAME " || true ) "
108
110
109
- if [ ! " $CODER_COMMAND " ]; then
111
+ if [ -z " ${ CODER_COMMAND} " ]; then
110
112
cath << EOF
111
113
Extend your path to use Coder:
112
114
113
115
$ PATH="$STANDALONE_INSTALL_PREFIX /bin:\$ PATH"
114
116
115
117
EOF
116
118
elif [ " $CODER_COMMAND " != " $STANDALONE_BINARY_LOCATION " ]; then
117
- echo_path_conflict " $CODER_COMMAND " " $STANDALONE_INSTALL_PREFIX "
119
+ echo_path_conflict " $CODER_COMMAND "
118
120
else
119
121
cath << EOF
120
122
To run a Coder server:
@@ -135,16 +137,23 @@ echo_brew_postinstall() {
135
137
return
136
138
fi
137
139
138
- CODER_COMMAND=" $( command -v " coder" ) "
139
140
BREW_PREFIX=" $( brew --prefix) "
140
141
142
+ cath << EOF
143
+
144
+ Coder has been installed to
145
+
146
+ $BREW_PREFIX /bin/coder
147
+
148
+ EOF
149
+
150
+ CODER_COMMAND=" $( command -v " coder" || true) "
151
+
141
152
if [ " $CODER_COMMAND " != " $BREW_PREFIX /bin/coder" ]; then
142
- echo_path_conflict " $CODER_COMMAND " " $BREW_PREFIX "
153
+ echo_path_conflict " $CODER_COMMAND "
143
154
fi
144
155
145
156
cath << EOF
146
- Homebrew formula has been installed.
147
-
148
157
To run a Coder server:
149
158
150
159
$ coder server
You can’t perform that action at this time.
0 commit comments