From e3b2807b6a1d32a37e277ee4551945b3828b2065 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Sat, 29 Jun 2024 15:06:06 +0200 Subject: [PATCH] fix inst-rasp.sh --- inst-raps.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inst-raps.sh b/inst-raps.sh index af622b8..921f3e0 100755 --- a/inst-raps.sh +++ b/inst-raps.sh @@ -184,10 +184,11 @@ printSuccess "Role updated successfully" #----------------------------------------------------------------------------- printInfo "CleanUp" rm -rf /tmp/yumupd -rerror=$? +rerror1=$? rm -rf /tmp/hostsupd -let "$rerror=$rerror+$?" -if [ $rerror -ne 0 ]; then printError "Problem to cleanUP";exit; fi +$rerror2=$? +sum=$(( $rerror1 + $rerror2 )) +if [ $sum -ne 0 ]; then printError "Problem to cleanUP";exit; fi printSuccess "CleanUp successfully" #-----------------------------------------------------------------------------