kdump-load/save-dumps: Use shell options to improve reliability
Add hereby "set -uo pipefail", with the goal of improving reliability (suggested by Emil/@xexaxo). Notice that the suggestion included "-e", but we make use of this, by checking non-zero pipes, so instead of refactoring the code to just have this option, the choice was to not have it. Also, make use of bash as the shell to execute the tools - after some analysis, we make use of few bashisms that are a bummer to change, since a lot of scripts in SteamOS make use of bash and in general it is a very common shell, let's just go along with it. Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -uo pipefail
|
||||
#
|
||||
# SPDX-License-Identifier: LGPL-2.1+
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user