From 05306765c21def4b04e50441913ef69916b0fc77 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 21 Oct 2022 14:11:50 +0200 Subject: [PATCH] modbuild: bugfix in writing the dependencies files --- Pmodules/libpbuild.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 3de5450..39c6bea 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -1290,12 +1290,12 @@ _build_module() { cd "${BUILD_DIR}" [[ "${OS}" == "Linux" ]] && post_install_linux install_doc - if [[ -v runtime_dependencies[0] ]]; then + if (( ${#runtime_dependencies[@]} > 0 )); then write_runtime_dependencies \ "${PREFIX}/${FNAME_RDEPS}" \ "${runtime_dependencies[@]}" fi - if [[ -v install_dependencies[0] ]]; then + if (( ${#install_dependencies[@]} > 0 )); then write_runtime_dependencies \ "${PREFIX}/${FNAME_IDEPS}" \ "${install_dependencies[@]}"