mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
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 <leah@libreboot.org>
This commit is contained in:
+1
-1
@@ -200,7 +200,7 @@ mktarball()
|
|||||||
if [ "${2%/*}" != "$2" ]; then
|
if [ "${2%/*}" != "$2" ]; then
|
||||||
mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\""
|
mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\""
|
||||||
fi
|
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()
|
mksha512sum()
|
||||||
|
|||||||
Reference in New Issue
Block a user