mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: better check for empty set
Even when no arg is passed - there is still one "" arg there... So taky it easy and check for empty string instead.
This commit is contained in:
parent
ce3c61c4af
commit
93ab6d5184
@ -431,10 +431,10 @@ common_dev_() {
|
||||
if test "$read_ms" -eq 0 -a "$write_ms" -eq 0 ; then
|
||||
offsets=
|
||||
else
|
||||
test ${#offsets[@]} -eq 0 && offsets="0:"
|
||||
test -z "${offsets[@]}" && offsets="0:"
|
||||
fi ;;
|
||||
error) offsets=${@:3}
|
||||
test ${#offsets[@]} -eq 0 && offsets="0:" ;;
|
||||
test -z "${offsets[@]}" && offsets="0:" ;;
|
||||
esac
|
||||
|
||||
local pos
|
||||
|
Loading…
x
Reference in New Issue
Block a user