From 37033f7315fa149349e2053c63d208bbde31f13d Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:55:43 -0400 Subject: [PATCH] fix({build,srcinfo.sh}): missed stuff (#1137) Co-authored-by: ook37 --- misc/scripts/build.sh | 2 +- misc/scripts/srcinfo.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/scripts/build.sh b/misc/scripts/build.sh index 9d9108f2b..11fd5468e 100755 --- a/misc/scripts/build.sh +++ b/misc/scripts/build.sh @@ -321,7 +321,7 @@ function makedeb() { if [[ -n ${arch[*]} ]]; then # If we have any or all in the arch, then the package works everywhere - if array.contains arch "any"; then + if array.contains arch "any" || array.contains arch "all"; then deblog "Architecture" "all" else # If it doesn't but arch[@] exists we should log the current arch as the build arch deblog "Architecture" "$(dpkg --print-architecture)" diff --git a/misc/scripts/srcinfo.sh b/misc/scripts/srcinfo.sh index 854134aba..0c93ab000 100755 --- a/misc/scripts/srcinfo.sh +++ b/misc/scripts/srcinfo.sh @@ -182,7 +182,7 @@ function srcinfo.parse() { fi mapfile -t split_up <<< "${part_two/_array_/$'\n'}" declare -n addarr="${split_up[0]}" - + unset "${split_up[1]}" # So now we need to check if the thing we're trying to insert is a variable, # or an array. if [[ "$(declare -p -- "${part_two}")" == "declare -a "* ]]; then