Skip to content

Commit

Permalink
Fix zone size value parsing
Browse files Browse the repository at this point in the history
Wrong variable was checked for "-z"

Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kdave committed Oct 18, 2023
1 parent 6083aa7 commit f04eada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nullb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function _parse_zone_size() {
_dbg "ARG: $1"
if [ "$1" = '-z' ]; then
zonesize="$2"
if [ -z "$size" ]; then
if [ -z "$zonesize" ]; then
_error "-z requires size"
fi
shift
Expand Down

0 comments on commit f04eada

Please sign in to comment.