mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-21 22:04:19 +03:00
tests: utils.sh separately assign
Declare and assign separately to avoid masking return values.
This commit is contained in:
parent
cf4b671acd
commit
d7b3815223
@ -188,7 +188,8 @@ STACKTRACE() {
|
||||
|
||||
init_udev_transaction() {
|
||||
if test "$DM_UDEV_SYNCHRONISATION" = 1; then
|
||||
local cookie=$(dmsetup udevcreatecookie)
|
||||
local cookie
|
||||
cookie=$(dmsetup udevcreatecookie)
|
||||
# Cookie is not generated if udev is not running!
|
||||
test -z "$cookie" || export DM_UDEV_COOKIE=$cookie
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user