]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: buildtar: do not print successful message if tar returns error
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 2 Sep 2017 08:05:35 +0000 (17:05 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 12 Sep 2017 15:20:33 +0000 (00:20 +0900)
commit402ef9d203483c8cd620db56e4e5a33166df66f1
tree42f875c405dffcf2970fdd80e9d540d1def65d65
parent77e9f3210ad94e4996013a46f947be1ad7e75b54
kbuild: buildtar: do not print successful message if tar returns error

The previous commit spotted that "Tarball successfully created ..."
is displayed even if the "tar" command returns error code because
it is followed by "| ${compress}".

Let the build fail instead of printing the successful message since
if the "tar" command fails, the output may not be what users expect.

Avoid the use of the pipe.  While we are here, refactor the script
removing the use of sub-shell, ${compress}, ${file_ext}.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/package/buildtar