Skip to content
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

Wrong expression for sed #7

Open
SakiiCode opened this issue May 25, 2020 · 3 comments
Open

Wrong expression for sed #7

SakiiCode opened this issue May 25, 2020 · 3 comments

Comments

@SakiiCode
Copy link

SakiiCode commented May 25, 2020

check-kernel-config is not setting CONFIG_DEFAULT_SECURITY

Output:

 CONFIG_DEFAULT_SECURITY is set, but to "selinux" y not "apparmor".
 Setting CONFIG_DEFAULT_SECURITY="apparmor" correctly
sed: -e expression #1, char 59: unterminated „s” command
@doniks
Copy link
Member

doniks commented May 25, 2020

I don't understand what you are saying. sed expression what?!

@SakiiCode
Copy link
Author

SakiiCode commented May 25, 2020

All I'm saying is the syntax on this line is incorrect. It is supposed to find and replace "selinux" with "apparmor"

sed -i 's,^'"$lhs"'.*,# '"$lhs"' was '"$cur"'\n'"$c"',' "$FILE"

I'm not that good at bash to fix it

@SakiiCode SakiiCode changed the title sed: -e expression #1, char 59: unterminated „s” command Wrong expression for sed May 25, 2020
@doniks
Copy link
Member

doniks commented May 25, 2020

ah. I see. the quotes in the quotes in the quotes go wrong. mhm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants