mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
rebuild-amount: Fix 'SC2155 (warning): Declare and assign separately to avoid masking return values.'
This commit is contained in:
parent
7876d878cf
commit
893e0f3733
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue