From 7c3b19022ded91baa527da84913f69706eb94a9e Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Thu, 29 Aug 2024 14:57:10 +0200 Subject: [PATCH] Fixed ret-val --- inst-rasp.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inst-rasp.sh b/inst-rasp.sh index 852e0ab..5e4bad1 100755 --- a/inst-rasp.sh +++ b/inst-rasp.sh @@ -107,16 +107,17 @@ printInfo "Extend root partition" #rootfs-expand partSize=`df --output=size -B 1 "$PWD" |tail -n 1` # For prod -#if [ $partSize -gt 61780000000 ]; then +if [ $partSize -gt 61780000000 ]; then # For dev -if [ $partSize -gt 21407727600 ]; then +#if [ $partSize -gt 21407727600 ]; then printSuccess "Root partion already extended" else rootfs-expand + retVal=$? if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi printSuccess "Root partition extended" # parted /dev/mmcblk0 resizepart 3 100% >/dev/null 2>&1 -# error=$? +# rror=$? # resize2fs /dev/mmcblk0p3 >/dev/null 2>&1 # let retVal=retVal+$error # if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi