]> sourceware.org Git - lvm2.git/commit
Fix some checks in lvm-utils.sh. Note that "$(test ...)" is always empty, since
authorPetr Rockai <prokai@redhat.com>
Sat, 10 Jan 2009 12:19:41 +0000 (12:19 +0000)
committerPetr Rockai <prokai@redhat.com>
Sat, 10 Jan 2009 12:19:41 +0000 (12:19 +0000)
commitd6778847c91143834be650037fe952c681bd51d1
treee08463c689821008cfd1d1fec903445ce87f7feb
parent9a96645b53ce1d84feaff69e09c386a60926e89c
Fix some checks in lvm-utils.sh. Note that "$(test ...)" is always empty, since
"test" never prints anything. Therefore, "return $(test ...)" is equivalent to
just "return;" which means success in sh (same as return 0). We can however,
thanks to set -e, use "test foo = bar" as an assertion.

PS: test a == b is invalid syntax. It is either = or -eq: = is textual and -eq
is numeric comparison.
test/lvm-utils.sh
This page took 0.038882 seconds and 5 git commands to generate.