From c8dc701f3ebf3de75b4461e15f7324400240d064 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 16 Apr 2025 00:57:54 +0100 Subject: lib.sh mktarball: stricter tar error handling 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 --- include/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/lib.sh') 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() -- cgit v1.2.1