Skip to content
Commit 9a066357 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kheaders: remove unneeded 'cat' command piped to 'head' / 'tail'



The 'head' and 'tail' commands can take a file path directly.
So, you do not need to run 'cat'.

  cat kernel/kheaders.md5 | head -1

... is equivalent to:

  head -1 kernel/kheaders.md5

and the latter saves forking one process.

While I was here, I replaced 'head -1' with 'head -n 1'.

I also replaced '==' with '=' since we do not have a good reason to
use the bashism.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 39808e45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment