fix inst-rasp.sh

This commit is contained in:
Gilles Mouchet 2024-06-29 15:06:06 +02:00
parent 5d321ed187
commit e3b2807b6a

View File

@ -184,10 +184,11 @@ printSuccess "Role updated successfully"
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
printInfo "CleanUp" printInfo "CleanUp"
rm -rf /tmp/yumupd rm -rf /tmp/yumupd
rerror=$? rerror1=$?
rm -rf /tmp/hostsupd rm -rf /tmp/hostsupd
let "$rerror=$rerror+$?" $rerror2=$?
if [ $rerror -ne 0 ]; then printError "Problem to cleanUP";exit; fi sum=$(( $rerror1 + $rerror2 ))
if [ $sum -ne 0 ]; then printError "Problem to cleanUP";exit; fi
printSuccess "CleanUp successfully" printSuccess "CleanUp successfully"
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------