-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix: fix rpm package bug #1519
Conversation
hack/package/rpm/build.sh
Outdated
@@ -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 -r "liblxcfs" . |awk -F':' '{print $1}'|uniq | xargs sed -i 's/liblxcfs/libpouchlxcfs/g' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use grep -l -r "liblxcfs" . | xargs sed -i 's/liblxcfs/libpouchlxcfs/g'
. 😄 WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GOOD!
Codecov Report
@@ Coverage Diff @@
## master #1519 +/- ##
===========================================
+ Coverage 16.88% 40.82% +23.94%
===========================================
Files 211 254 +43
Lines 14020 16605 +2585
===========================================
+ Hits 2367 6779 +4412
+ Misses 11490 8958 -2532
- Partials 163 868 +705
|
Signed-off-by: letty <[email protected]>
Since the change doesn’t impact the case, I will merge this |
Signed-off-by: letty [email protected]
Ⅰ. Describe what this PR did
fix shell error
Ⅱ. Does this pull request fix one issue?
fix #1509
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews