1
0
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:
Zdenek Kabelac 2017-06-29 21:22:52 +02:00
parent cf4b671acd
commit d7b3815223

View File

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