Declare variables separately when assigning the result of $()

This commit is contained in:
Kamil Śliwak
2021-03-04 16:53:05 +01:00
parent 1c7cc376d1
commit 75b87d159d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -121,8 +121,8 @@ function test_solc_behaviour()
local stderr_expected="${7}"
local stdout_expectation_file="${8}" # the file to write to when user chooses to update stdout expectation
local stderr_expectation_file="${9}" # the file to write to when user chooses to update stderr expectation
local stdout_path=$(mktemp)
local stderr_path=$(mktemp)
local stdout_path; stdout_path=$(mktemp)
local stderr_path; stderr_path=$(mktemp)
trap "rm -f $stdout_path $stderr_path" EXIT