From 15c51e3d6e9c7b31a82e74988b3929ff0eb0f27a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 18 Jan 2016 12:07:41 -0500 Subject: Add explicit returns to some functions --- (limited to 'src/opkg.sh') diff --git a/src/opkg.sh b/src/opkg.sh index 9e5c3c4..2f10244 100644 --- a/src/opkg.sh +++ b/src/opkg.sh @@ -21,9 +21,13 @@ opkg_install_all() { local root="${1}" + local es= session_begin "${root}" . : true session_exec /bin/sh -c \ 'opkg install $(opkg list-installed | cut -d " " -f 1)' + es=${?} session_end + + return ${es} } -- cgit v0.9.1