Commit fd4faf59 authored by topjohnwu's avatar topjohnwu

Use tr for replacing whitespace to newline

Close #824
parent 109891d6
...@@ -139,7 +139,7 @@ get_flags() { ...@@ -139,7 +139,7 @@ get_flags() {
grep_cmdline() { grep_cmdline() {
local REGEX="s/^$1=//p" local REGEX="s/^$1=//p"
sed -E 's/ +/\n/g' /proc/cmdline | sed -n "$REGEX" 2>/dev/null cat /proc/cmdline | tr '[:space:]' '\n' | sed -n "$REGEX" 2>/dev/null
} }
grep_prop() { grep_prop() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment