From 53df8159193100da425dd4641653737bbecfa48e Mon Sep 17 00:00:00 2001 From: letty Date: Wed, 13 Jun 2018 17:36:02 +0800 Subject: [PATCH] bugfix: fix rpm package bug Signed-off-by: letty --- hack/package/rpm/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/package/rpm/build.sh b/hack/package/rpm/build.sh index 12bbf8220..64227018a 100755 --- a/hack/package/rpm/build.sh +++ b/hack/package/rpm/build.sh @@ -41,7 +41,7 @@ function build_lxcfs () git clone -b "$LXC_BRANCH" https://github.com/lxc/lxcfs.git && cd lxcfs # change liblxcfs.so to libpouchlxcfs.so - sed -i 's/liblxcfs/libpouchlxcfs/g' "$(grep -r "liblxcfs" . |awk -F':' '{print $1}'|uniq )" + grep -l -r "liblxcfs" . | xargs sed -i 's/liblxcfs/libpouchlxcfs/g' ./bootstrap.sh > /dev/null 2>&1 ./configure > /dev/null 2>&1 make install DESTDIR="$LXC_DIR" > /dev/null 2>&1