From 4d508e47162132b3476df1828b40b6dbf6c803f7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 21:04:49 -0400 Subject: opkg_install_all(): Make "set -e"-safe --- (limited to 'src') 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} -- cgit v0.9.1