From d0940f483da422811314bd23c414b4a4aa320be1 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Sun, 7 Dec 2008 09:53:41 +0200 Subject: [PATCH] Exit installation procedure if the uninstall of the previous OFED version failed. Signed-off-by: Vladimir Sokolovsky --- install.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.pl b/install.pl index 07faf6c..1e6c0bb 100755 --- a/install.pl +++ b/install.pl @@ -3851,6 +3851,11 @@ sub uninstall system("yes | $CWD/uninstall.sh > $ofedlogs/ofed_uninstall.log 2>&1"); $res = $? >> 8; $sig = $? & 127; + if ($sig or $res) { + print RED "Failed to uninstall the previous installation", RESET "\n"; + print RED "See $ofedlogs/ofed_uninstall.log", RESET "\n"; + exit 1; + } } if ($distro eq "SuSE") { -- 2.46.0