Fixed ret-val
This commit is contained in:
parent
4be52afb90
commit
7c3b19022d
@ -107,16 +107,17 @@ printInfo "Extend root partition"
|
|||||||
#rootfs-expand
|
#rootfs-expand
|
||||||
partSize=`df --output=size -B 1 "$PWD" |tail -n 1`
|
partSize=`df --output=size -B 1 "$PWD" |tail -n 1`
|
||||||
# For prod
|
# For prod
|
||||||
#if [ $partSize -gt 61780000000 ]; then
|
if [ $partSize -gt 61780000000 ]; then
|
||||||
# For dev
|
# For dev
|
||||||
if [ $partSize -gt 21407727600 ]; then
|
#if [ $partSize -gt 21407727600 ]; then
|
||||||
printSuccess "Root partion already extended"
|
printSuccess "Root partion already extended"
|
||||||
else
|
else
|
||||||
rootfs-expand
|
rootfs-expand
|
||||||
|
retVal=$?
|
||||||
if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi
|
if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi
|
||||||
printSuccess "Root partition extended"
|
printSuccess "Root partition extended"
|
||||||
# parted /dev/mmcblk0 resizepart 3 100% >/dev/null 2>&1
|
# parted /dev/mmcblk0 resizepart 3 100% >/dev/null 2>&1
|
||||||
# error=$?
|
# rror=$?
|
||||||
# resize2fs /dev/mmcblk0p3 >/dev/null 2>&1
|
# resize2fs /dev/mmcblk0p3 >/dev/null 2>&1
|
||||||
# let retVal=retVal+$error
|
# let retVal=retVal+$error
|
||||||
# if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi
|
# if [ $retVal -ne 0 ]; then printError "Problem to extend root partition";exit; fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user