summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-01-02 23:58:37 +0000
committerLeah Rowe <leah@libreboot.org>2025-01-02 23:58:37 +0000
commitb032e483ef16ae77e2856c44c107428720561d40 (patch)
tree5f7db70c554c4847ddb60988bfc5771b20b9ee96 /include
parent0cf58c22734b19293f4cbef83add59b031ca1773 (diff)
lib.sh mktarball: cleaner if statement
i also removed that printf, because the path it prints is actually wrong sometimes; in the recent re-write of vendor.sh, it prints the correct path instead Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 790f4fe9..8886cfc8 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -170,9 +170,9 @@ mkrom_tarball()
mktarball()
{
- [ "${2%/*}" = "$2" ] || \
+ if [ "${2%/*}" != "$2" ]; then
mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\""
- printf "\nCreating archive: %s\n\n" "$2"
+ fi
tar -c "$1" | xz -T$XBMK_THREADS -9e > "$2" || $err "mktarball 2, $1"
}