We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8694c28 commit cc5fae7Copy full SHA for cc5fae7
src/etc/install.sh
@@ -237,6 +237,7 @@ need_ok "failed to remove install probe"
237
"${CFG_SRC_DIR}/bin/rustc" --version > /dev/null
238
need_ok "can't run these binaries on this platform"
239
240
+
241
# First, uninstall from the installation prefix
242
# FIXME: Hardcoded 'rustlib' ignores CFG_RUSTLIBDIR
243
if [ -f "${CFG_PREFIX}/lib/rustlib/manifest" ]
@@ -251,6 +252,12 @@ then
251
252
msg "uninstall ${CFG_PREFIX}/lib/rustlib"
253
rm -r "${CFG_PREFIX}/lib/rustlib"
254
need_ok "failed to remove rustlib"
255
+else
256
+ if [ -n "${CFG_UNINSTALL}" ]
257
+ then
258
+ err "unable to find manifest at ${CFG_PREFIX}/lib/rustlib"
259
+ exit 0
260
+ fi
261
fi
262
263
# If we're only uninstalling then exit
0 commit comments