Message ID | ef2df19486ef71adccd14b3df0bf475ecc7f3b38.1709737287.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: fix grep warning at _require_btrfs_mkfs_uuid_option() | expand |
On Wed, 6 Mar 2024 15:01:57 +0000, fdmanana@kernel.org wrote: ... > cnt=$($MKFS_BTRFS_PROG --help 2>&1 | \ > - grep -E --count "\-\-uuid|\-\-device-uuid") > + grep -E --count -- "--uuid|--device-uuid") > if [ $cnt != 2 ]; then > _notrun "Require $MKFS_BTRFS_PROG with --uuid and --device-uuid options" > fi Reviewed-by: David Disseldorp <ddiss@suse.de>
looks good.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Thanks.
diff --git a/common/btrfs b/common/btrfs index 3eb2a91b..aa344706 100644 --- a/common/btrfs +++ b/common/btrfs @@ -93,7 +93,7 @@ _require_btrfs_mkfs_uuid_option() local cnt cnt=$($MKFS_BTRFS_PROG --help 2>&1 | \ - grep -E --count "\-\-uuid|\-\-device-uuid") + grep -E --count -- "--uuid|--device-uuid") if [ $cnt != 2 ]; then _notrun "Require $MKFS_BTRFS_PROG with --uuid and --device-uuid options" fi