From 4c1b16f6aecaf78956b9335734cfde2ac076ee11 Mon Sep 17 00:00:00 2001 From: Charlie West-Toebe <38671683+Hoidberg@users.noreply.github.com> Date: Mon, 25 Mar 2019 12:53:49 -0500 Subject: [PATCH] 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 --- scripts/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 4ed1062aa1308..7f66151daea03 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