summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-09-25 06:43:36 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-09-25 06:50:30 (EDT)
commit73e0d93172e1020a29e1b992e4d9fcec956ec2bb (patch)
tree8e2541fd969e9f518d5045bab3839fd53885bb75
parentbbb92cab553dc00aa65a5b4d0f557e92c453e2ed (diff)
opkg: Fix exit status on opkg-cl errorHEADmaster
-rw-r--r--changelog6
-rwxr-xr-xopkg4
2 files changed, 9 insertions, 1 deletions
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 <patrick.mcdermott@libiquity.com> 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
}