@@ -229,15 +229,16 @@ validate_opt
229229
230230# Sanity check: can we can write to the destination?
231231umask 022 && mkdir -p " ${CFG_LIBDIR} "
232- need_ok " directory creation failed "
232+ need_ok " can't write to destination. consider ` sudo ` . "
233233touch " ${CFG_LIBDIR} /rust-install-probe" 2> /dev/null
234234if [ $? -ne 0 ]
235235then
236- err " can't write to destination. try again with ' sudo' ."
236+ err " can't write to destination. consider ` sudo` ."
237237fi
238238rm " ${CFG_LIBDIR} /rust-install-probe"
239239need_ok " failed to remove install probe"
240240
241+ # The file name of the manifest we're going to create during install
241242INSTALLED_MANIFEST=" ${CFG_LIBDIR} /rustlib/manifest"
242243
243244# First, uninstall from the installation prefix.
267268 warn " failed to remove rustlib"
268269 fi
269270else
271+ # There's no manifest. If we were asked to uninstall, then that's a problem.
270272 if [ -n " ${CFG_UNINSTALL} " ]
271273 then
272274 err " unable to find installation manifest at ${CFG_LIBDIR} /rustlib"
@@ -304,7 +306,7 @@ while read p; do
304306 FILE_INSTALL_PATH=" ${CFG_MANDIR} /$pp "
305307 fi
306308
307- # Make sure ther 's a directory for it
309+ # Make sure there 's a directory for it
308310 umask 022 && mkdir -p " $( dirname ${FILE_INSTALL_PATH} ) "
309311 need_ok " directory creation failed"
310312
@@ -330,7 +332,7 @@ while read p; do
330332 need_ok " failed to update manifest"
331333
332334# The manifest lists all files to install
333- done < " ${CFG_SRC_DIR} /lib/rustlib/manifest"
335+ done < " ${CFG_SRC_DIR} /lib/rustlib/manifest.in "
334336
335337echo
336338echo " Rust is ready to roll."
0 commit comments