summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/option.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/option.sh b/include/option.sh
index ed094b5c..b6e22ce8 100755
--- a/include/option.sh
+++ b/include/option.sh
@@ -20,9 +20,10 @@ eval "$(setvars "" CONFIG_BOARD_DELL_E6400 CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN \
items()
{
rval=1
- [ ! -d "${1}" ] && \
- printf "items: directory '%s' doesn't exist" "${1}" && \
- return 1
+ if [ ! -d "${1}" ]; then
+ printf "items: directory '%s' doesn't exist" "${1}"
+ return 1
+ fi
for x in "${1}/"*; do
# -e used because this is for files *or* directories
[ -e "${x}" ] || continue