Browse Source

Buffer and Log get overwriten every iteration of the loop

Because BUFFER and LOG are inside the loop each iteration they get set to the initial values, overwriting any value set by the corresponding option if there are later options set.

For example: simply adding `--log` will cause buffer to default to 10 even if some other value had been previously set.
pull/3/head
Rob Griffiths 1 year ago
committed by GitHub
parent
commit
5e2758012f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      checkvolumesize

6
checkvolumesize

@ -33,12 +33,12 @@ EOF
# Parse options
POSITIONAL=()
BUFFER=10
LOG=false
while [[ $# -gt 0 ]]; do
key="$1"
BUFFER=10
LOG=false
case $key in
--help|-h|help)
show_help

Loading…
Cancel
Save