From 9470dc5dddeaa48ef3633a46ab89523d78b3245f Mon Sep 17 00:00:00 2001 From: Luis Chamberlain Date: Mon, 14 Feb 2022 17:48:44 -0800 Subject: [PATCH] common/btrfs: use $AWK_PROG Use $AWK_PROG instead of just awk in case the preferred awk program is different. Signed-off-by: Luis Chamberlain Reviewed-by: Johannes Thumshirn Reviewed-by: Adam Manzanares Signed-off-by: Eryu Guan --- common/btrfs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/btrfs b/common/btrfs index 5de926dd..2fdefb18 100644 --- a/common/btrfs +++ b/common/btrfs @@ -9,7 +9,7 @@ _btrfs_get_subvolid() mnt=$1 name=$2 - $BTRFS_UTIL_PROG sub list $mnt | egrep "\s$name$" | awk '{ print $2 }' + $BTRFS_UTIL_PROG sub list $mnt | egrep "\s$name$" | $AWK_PROG '{ print $2 }' } # _require_btrfs_command [|