From 73e0d93172e1020a29e1b992e4d9fcec956ec2bb Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 25 Sep 2023 06:43:36 -0400 Subject: opkg: Fix exit status on opkg-cl error --- diff --git a/changelog b/changelog index 3ccdb2b..bb6b373 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,11 @@ opkg-lede (0+git20190131.d4ba162-8) trunk + * opkg-lede: Fix exit status when "/usr/bin/opkg-cl" fails. + + -- Patrick McDermott Mon, 25 Sep 2023 06:49:51 -0400 + +opkg-lede (0+git20190131.d4ba162-8) trunk + * opkg-lede: Fix a "cat: not found" error when "/usr/bin/opkg" is run during a system installation. diff --git a/opkg b/opkg index c9f7052..8274e47 100755 --- a/opkg +++ b/opkg @@ -63,6 +63,7 @@ main() local first_arg= local arch_arg= local arg= + local es= first_arg=true arch_arg='' @@ -125,8 +126,9 @@ main() unsave_bb return 0 else + es=${?} unsave_bb - return ${?} + return ${es} fi } -- cgit v0.9.1