mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 18:34:57 +02:00
option.sh: don't rely on zero status on printf
this part of the code *must* return. the for loop afterwards must not be permitted to execute. it's unlikely that this would ever occur, unless perhaps the user is using a very buggy sh. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+4
-3
@@ -20,9 +20,10 @@ eval "$(setvars "" CONFIG_BOARD_DELL_E6400 CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN \
|
|||||||
items()
|
items()
|
||||||
{
|
{
|
||||||
rval=1
|
rval=1
|
||||||
[ ! -d "${1}" ] && \
|
if [ ! -d "${1}" ]; then
|
||||||
printf "items: directory '%s' doesn't exist" "${1}" && \
|
printf "items: directory '%s' doesn't exist" "${1}"
|
||||||
return 1
|
return 1
|
||||||
|
fi
|
||||||
for x in "${1}/"*; do
|
for x in "${1}/"*; do
|
||||||
# -e used because this is for files *or* directories
|
# -e used because this is for files *or* directories
|
||||||
[ -e "${x}" ] || continue
|
[ -e "${x}" ] || continue
|
||||||
|
|||||||
Reference in New Issue
Block a user