summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-13 03:50:24 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-13 03:50:24 (EST)
commit399a3e2a4710fb8ad8e19024e1fc867c6054384f (patch)
treec6425d930f86de5a628d21d48bc57ef0b3a74d2a
parent3fa116392979a705a544fb255a708022d2651372 (diff)
cmd/build: Fix AND-OR list logic
-rw-r--r--src/cmd/build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh
index 0b2c519..399a349 100644
--- a/src/cmd/build.sh
+++ b/src/cmd/build.sh
@@ -154,8 +154,10 @@ _cmd_build_build()
fi
fi
- ${log} && _cmd_build_header '-' 'Installed Packages'
- ${log} && session_exec opkg list-installed || es=${?}
+ if ${log}; then
+ _cmd_build_header '-' 'Installed Packages'
+ session_exec opkg list-installed || es=${?}
+ fi
${log} && _cmd_build_header '-' 'Build'
if [ ${es} -eq 0 ]; then