rebuild-amount: Fix 'SC2155 (warning): Declare and assign separately to avoid masking return values.' (#321146)

This commit is contained in:
Artturin 2024-10-25 02:34:36 +03:00 committed by GitHub
commit 11761eda6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"