summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:33:55 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:33:55 (EDT)
commite63eb70b9b77322747c3945f9fb467b59d5a9391 (patch)
treeece4eee583b8239285906da8a624167a74a3225c
parent8021a9c2cc8e4b1501c626451f6dcbd89f4c1b8d (diff)
src/cmd/opkg.sh: Define functions before references
-rw-r--r--src/cmd/opkg.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh
index ff903b3..0da1a8b 100644
--- a/src/cmd/opkg.sh
+++ b/src/cmd/opkg.sh
@@ -20,6 +20,18 @@
cmd_opkg_opks=
+cmd_opkg_fini()
+{
+ case "${cmd_opkg_opks}" in
+ *[!\ ]*)
+ rm -f ${cmd_opkg_opks}
+ # Hack to avoid this code branch if the function is
+ # called again in response to a signal.
+ cmd_opkg_opks=''
+ ;;
+ esac
+}
+
cmd_opkg_main()
{
local root=
@@ -101,18 +113,6 @@ cmd_opkg_main()
return 0
}
-cmd_opkg_fini()
-{
- case "${cmd_opkg_opks}" in
- *[!\ ]*)
- rm -f ${cmd_opkg_opks}
- # Hack to avoid this code branch if the function is
- # called again in response to a signal.
- cmd_opkg_opks=''
- ;;
- esac
-}
-
cmd_opkg_register()
{
register_cmd 'opkg'