From 893e0f3733edbf1d1e7e04970644e60a23ffc551 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Thu, 15 Jun 2023 14:11:00 +1200 Subject: [PATCH] rebuild-amount: Fix 'SC2155 (warning): Declare and assign separately to avoid masking return values.' --- maintainers/scripts/rebuild-amount.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maintainers/scripts/rebuild-amount.sh b/maintainers/scripts/rebuild-amount.sh index 32810f6b98c0..0058e8c04ba0 100755 --- a/maintainers/scripts/rebuild-amount.sh +++ b/maintainers/scripts/rebuild-amount.sh @@ -81,11 +81,13 @@ newPkgs() { # could eat too much memory for a standard 4GiB machine. local -a list for i in 1 2; do - local l="$($MKTEMP)" + local l + l="$($MKTEMP)" list[$i]="$l" toRemove+=("$l") - local expr="$($MKTEMP)" + local expr + expr="$($MKTEMP)" toRemove+=("$expr") nixexpr "${!i}" > "$expr"