summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}