File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -113,29 +113,40 @@ install_with_yarn_or_npm() {
113
113
# HACK: NPM's use of semver doesn't like resolving some peerDependencies that vscode (upstream) brings in the form of pre-releases.
114
114
# The legacy behavior doesn't complain about pre-releases being used, falling back to that for now.
115
115
# See https://github.com//pull/5071
116
- npm install --unsafe-perm --legacy-peer-deps --omit=dev
116
+ if ! npm install --unsafe-perm --legacy-peer-deps --omit=dev; then
117
+ return 1
118
+ fi
117
119
;;
118
120
yarn* )
119
- yarn --production --frozen-lockfile --no-default-rc
121
+ if ! yarn --production --frozen-lockfile --no-default-rc; then
122
+ return 1
123
+ fi
120
124
;;
121
125
* )
122
126
echo " Could not determine which package manager is being used to install code-server"
123
127
exit 1
124
128
;;
125
129
esac
130
+ return 0
126
131
}
127
132
128
133
vscode_install () {
129
134
echo ' Installing Code dependencies...'
130
135
cd lib/vscode
131
- install_with_yarn_or_npm
136
+ if ! install_with_yarn_or_npm; then
137
+ return 1
138
+ fi
132
139
133
140
symlink_asar
134
141
symlink_bin_script remote-cli code code-server
135
142
symlink_bin_script helpers browser browser .sh
136
143
137
144
cd extensions
138
- install_with_yarn_or_npm
145
+ if ! install_with_yarn_or_npm; then
146
+ return 1
147
+ fi
148
+
149
+ return 0
139
150
}
140
151
141
152
main " $@ "
You can’t perform that action at this time.
0 commit comments