1
0
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:
Zdenek Kabelac 2015-04-03 16:38:05 +02:00
parent ce3c61c4af
commit 93ab6d5184

View File

@ -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