summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-20 01:15:06 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-20 01:15:06 +0100
commit808458ced5bcc5131d542e7e2fcb8120a613c8eb (patch)
tree395156e0d4d2658e0184c2a29077b39e579f8c82 /include/lib.sh
parent4ab99d546e4b67e0394a2bb34c004c46d16ff893 (diff)
minor code cleanup in the build system
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 5952b202..2fc17cfe 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -181,8 +181,7 @@ mktarball()
[ "${2%/*}" = "$2" ] || \
mkdir -p "${2%/*}" || $err "mk, !mkdir -p \"${2%/*}\""
printf "\nCreating archive: %s\n\n" "$2"
- tar -c "$1" | xz -T$threads -9e > "$2" || \
- $err "mktarball 2, $1"
+ tar -c "$1" | xz -T$threads -9e > "$2" || $err "mktarball 2, $1"
mksha512sum "$2" "${2##*/}.sha512"
}
@@ -190,8 +189,7 @@ mksha512sum()
{
(
[ "${1%/*}" != "$1" ] && x_ cd "${1%/*}"
- sha512sum ./"${1##*/}" >> "$2" || \
- $err "!sha512sum \"$1\" > \"$2\""
+ sha512sum ./"${1##*/}" >> "$2" || $err "!sha512sum \"$1\" > \"$2\""
) || $err "failed to create tarball checksum"
}