diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-04-18 01:33:45 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-04-18 01:33:45 +0100 | 
| commit | 11078508a25a6d4b58de8b4364780929b87ef6e6 (patch) | |
| tree | 9941f7890c67f61389a847cffed191cebf9ffb73 | |
| parent | 087bbedc5f80d8f7e326032f418aa802228a4a3c (diff) | |
lib.sh: simplify mktarball()
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | include/lib.sh | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/include/lib.sh b/include/lib.sh index 7832db8e..4d7001cf 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -199,9 +199,7 @@ mkrom_tarball()  mktarball()  { -	if [ "${2%/*}" != "$2" ]; then -		mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\"" -	fi +	[ "${2%/*}" = "$2" ] || x_ mkdir -p "${2%/*}"  	x_ tar -c "$1" | xz -T$XBMK_THREADS -9e > "$2" || $err "mktarball2, $1"  } | 
