From 5ae28cbfcf6892a908d88a8d14ffeb85a6431904 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 26 Apr 2019 00:34:24 -0400 Subject: src/cmd/opkg.sh: Make a function "static" --- diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh index 0da1a8b..62aa788 100644 --- a/src/cmd/opkg.sh +++ b/src/cmd/opkg.sh @@ -20,7 +20,7 @@ cmd_opkg_opks= -cmd_opkg_fini() +_cmd_opkg_fini() { case "${cmd_opkg_opks}" in *[!\ ]*) @@ -97,15 +97,15 @@ cmd_opkg_main() return 2 fi - if ! session_begin "${root}" . cmd_opkg_fini false; then - cmd_opkg_fini + if ! session_begin "${root}" . _cmd_opkg_fini false; then + _cmd_opkg_fini [ "x${dev}" != 'x' ] && block_umount "${root}" return 2 fi session_exec opkg "${@}" - cmd_opkg_fini + _cmd_opkg_fini session_end [ "x${dev}" != 'x' ] && block_umount "${root}" -- cgit v0.9.1