Fixed ret-val
This commit is contained in:
parent
4be52afb90
commit
7c3b19022d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user