diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-18 12:07:41 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-18 12:07:41 (EST) |
commit | 15c51e3d6e9c7b31a82e74988b3929ff0eb0f27a (patch) | |
tree | 747c851f08f854a5923a8f5646fa07afa001eb56 /src/opkg.sh | |
parent | 7831304e08e5a6092e4df7343f8e7de69decb69c (diff) |
Add explicit returns to some functions
Diffstat (limited to 'src/opkg.sh')
-rw-r--r-- | src/opkg.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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} } |