diff options
author | Leah Rowe <leah@libreboot.org> | 2025-04-16 00:57:54 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-04-16 00:57:54 +0100 |
commit | c8dc701f3ebf3de75b4461e15f7324400240d064 (patch) | |
tree | 9b2f2abae4b834853f52e1a00a1c7c563f8c5680 | |
parent | 58a53d7046fdfe8ff4e8a16d3a5f6c2562699384 (diff) |
There was no error handling, *at all*, on the actual tar
command, due to the lack of set -o pipefail, which we cannot
rely on in sh.
The x_ wrapper can be used in this case, as a mitigation.
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh index cb8e0303..e0c9b1a2 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -200,7 +200,7 @@ mktarball() if [ "${2%/*}" != "$2" ]; then mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\"" fi - tar -c "$1" | xz -T$XBMK_THREADS -9e > "$2" || $err "mktarball 2, $1" + x_ tar -c "$1" | xz -T$XBMK_THREADS -9e > "$2" || $err "mktarball2, $1" } mksha512sum() |