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" #-----------------------------------------------------------------------------