mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
fix: Remove unused vars
fix: Remove unused vars
This commit is contained in:
commit
451a569617
@ -27,9 +27,7 @@ addDisk () {
|
||||
local GB
|
||||
local DIR
|
||||
local REQ
|
||||
local SIZE
|
||||
local SPACE
|
||||
local MIN_SIZE
|
||||
local CUR_SIZE
|
||||
local DATA_SIZE
|
||||
local DISK_ID=$1
|
||||
@ -46,8 +44,7 @@ addDisk () {
|
||||
DISK_SPACE=$(echo "${DISK_SPACE}" | sed 's/MB/M/g;s/GB/G/g;s/TB/T/g')
|
||||
DATA_SIZE=$(numfmt --from=iec "${DISK_SPACE}")
|
||||
|
||||
MIN_SIZE=6442450944
|
||||
if (( DATA_SIZE < MIN_SIZE )); then
|
||||
if (( DATA_SIZE < 6442450944 )); then
|
||||
error "Please increase ${DISK_DESC^^}_SIZE to at least 6 GB." && exit 83
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user