mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:18:07 +02:00
lbmk: don't use status for unconditional returns
in cases where lbmk must always return from a function, there are some cases where it relies on non-zero exit status, which in practise is always the case, but may change in the future if the relevant part is modified e.g. do_something && return 0 the proper form is: do_something return 0 also do this for unconditional exits Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Vendored
+4
-2
@@ -140,8 +140,10 @@ vendor_checksum()
|
||||
|
||||
mkdirs()
|
||||
{
|
||||
[ -f "${1}" ] && \
|
||||
printf "mkdirs ${1} ${2}: already downloaded\n" 1>&2 && return 1
|
||||
if [ -f "${1}" ]; then
|
||||
printf "mkdirs ${1} ${2}: already downloaded\n" 1>&2
|
||||
return 1
|
||||
fi
|
||||
mkdir -p "${1%/*}" || err "mkdirs: !mkdir -p ${1%/*}"
|
||||
x_ rm -Rf "${appdir}"
|
||||
x_ mkdir -p "${appdir}/"
|
||||
|
||||
Reference in New Issue
Block a user