summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-16 00:57:54 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-16 00:57:54 +0100
commitc8dc701f3ebf3de75b4461e15f7324400240d064 (patch)
tree9b2f2abae4b834853f52e1a00a1c7c563f8c5680
parent58a53d7046fdfe8ff4e8a16d3a5f6c2562699384 (diff)
lib.sh mktarball: stricter tar error handlingHEADmaster
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.sh2
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()