summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 21:04:49 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 21:04:49 (EDT)
commit4d508e47162132b3476df1828b40b6dbf6c803f7 (patch)
tree4c917c13845acf30f6076d7b4616d053ad4ad9a8
parent7e72617269804cc8d536c88fb5e54e46f39f3d21 (diff)
opkg_install_all(): Make "set -e"-safe
-rw-r--r--src/opkg.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/opkg.sh b/src/opkg.sh
index 1b96112..9b5af55 100644
--- a/src/opkg.sh
+++ b/src/opkg.sh
@@ -25,9 +25,10 @@ opkg_install_all()
local es=
session_begin "${root}" . : true
+ es=0
session_exec /bin/sh -c \
- 'opkg install $(opkg list-installed | cut -d " " -f 1)'
- es=${?}
+ 'opkg install $(opkg list-installed | cut -d " " -f 1)' || \
+ es=${?}
session_end
return ${es}