From b032e483ef16ae77e2856c44c107428720561d40 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 2 Jan 2025 23:58:37 +0000 Subject: 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 --- include/lib.sh | 4 ++-- 1 file 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" } -- cgit v1.2.1