common/rc: fix ignoring of errors on
authorLuis Chamberlain <mcgrof@kernel.org>
Wed, 25 Aug 2021 21:15:20 +0000 (14:15 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 29 Aug 2021 13:08:21 +0000 (21:08 +0800)
commit0e4dd8b9d2c86b447024d63a18b27eb97f7b1da4
tree3bfd58185a3cbb54c9f6c7a2287ed4fba17d963e
parent90199d8061509a02d514dbdcc930928ce3fc8b1c
common/rc: fix ignoring of errors on

Commit 0c95c8acb ("common: hide permision warning from mkswap for
exfat") and commit 08e93fa7c ("generic/554: hide permision warning on
exfat") removed a warning by grepping an error out. It however broke
use on older versions of bash such as 4.4.23:

./common/rc: line 2554: syntax error near unexpected token `>'
./common/rc: line 2554: `       MKSWAP_PROG "$fname" 2> >(grep -v 'insecure permission' >&2) >> $seqres.full'

Fix both instances by using a $(foo) to run the executable.

Cc: Pavel Reichl <preichl@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc