Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie West-Toebe <38671683+Hoidberg@users.noreply.github.com>2019-03-25 20:53:49 +0300
committerMichael Perrotte <mike@npmjs.com>2019-12-03 20:17:24 +0300
commit4c1b16f6aecaf78956b9335734cfde2ac076ee11 (patch)
treed491c5de9803cbf5417d9db5ff0afd9d4481362a /scripts
parentae7afe56504dbffabf9f73d55b6dac1e3e9fed4a (diff)
chore: Warn the user that it is uninstalling npm-install
PR-URL: https://github.com/npm/cli/pull/182 Credit: @Hoidberg Close: #182 Reviewed-by: @mikemimik
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 4ed1062aa..7f66151da 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -23,12 +23,14 @@ if [ "x$0" = "xsh" ]; then
if [ $ret -eq 0 ]; then
(exit 0)
else
+ echo "Uninstalling npm-install-$$.sh" >&2
rm npm-install-$$.sh
echo "Failed to download script" >&2
exit $ret
fi
sh npm-install-$$.sh
ret=$?
+ echo "Uninstalling npm-install-$$.sh" >&2
rm npm-install-$$.sh
exit $ret
fi