summaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2024-06-07 16:26:14 +0200
committerPaul Spooren <mail@aparcar.org>2024-06-07 21:49:09 +0200
commit17d8c5825e6f5c5d2e4d2c320c3b4b797f4ca0e9 (patch)
tree8a0949a10f785d9c8ea2df82a897396c387165c1 /package/base-files/files
parent884bef5d1bbccaeb96b382363106a2886e28b9b3 (diff)
downloadopenwrt-17d8c5825e6f5c5d2e4d2c320c3b4b797f4ca0e9.tar.gz
openwrt-17d8c5825e6f5c5d2e4d2c320c3b4b797f4ca0e9.tar.bz2
openwrt-17d8c5825e6f5c5d2e4d2c320c3b4b797f4ca0e9.zip
base-files: Ignore exit code of uci.sh inclusion
When running unit tests this causes trouble since `/lib/config/uci.sh` isn't available in those cases. Instead exit with a clean status fo the unit test framework don't wrongly interpret things as an error. Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'package/base-files/files')
-rw-r--r--package/base-files/files/lib/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index a009aa81e9..0fc8c07d1a 100644
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -533,4 +533,4 @@ cmdline_get_var() {
done
}
-[ -z "$IPKG_INSTROOT" ] && [ -f /lib/config/uci.sh ] && . /lib/config/uci.sh
+[ -z "$IPKG_INSTROOT" ] && ( [ -f /lib/config/uci.sh ] && . /lib/config/uci.sh ) || true