summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-06-25 18:41:01 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-06-25 18:41:01 (EDT)
commit772b6483fc8bcf702f093d46d391e61ab337aa6b (patch)
treec9c51a8aa416ea719a5324c240eceaa3fcfa5962 /src
parentdeb632182a01bd26dc673d623a006a2fe45319c2 (diff)
cmd/opkg: Return exit status
Diffstat (limited to 'src')
-rw-r--r--src/cmd/opkg.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh
index 7fbfdb3..8444b3b 100644
--- a/src/cmd/opkg.sh
+++ b/src/cmd/opkg.sh
@@ -40,6 +40,7 @@ cmd_opkg_main()
local install_cmd=
local arg=
local new_fname=
+ local es=
if [ ${#} -lt 1 ]; then
print_cmd_usage 'opkg' >&2
@@ -103,14 +104,15 @@ cmd_opkg_main()
return 2
fi
- session_exec opkg "${@}"
+ es=0
+ session_exec opkg "${@}" || es=${?}
_cmd_opkg_fini
session_end
[ "x${dev}" != 'x' ] && block_umount "${root}"
- return 0
+ return ${es}
}
cmd_opkg_register()