Skip to content

Commit

Permalink
[Fix] declare an unbound variable
Browse files Browse the repository at this point in the history
Fixes #3402
  • Loading branch information
ljharb committed Aug 7, 2024
1 parent 14acd3d commit 01f9ec7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,12 @@ nvm_process_nvmrc() {
fi

# Initialize key-value storage
local keys=''
local values=''
local keys
keys=''
local values
values=''
local unpaired_line
unpaired_line=''

while IFS= read -r line; do
if [ -z "${line}" ]; then
Expand Down

0 comments on commit 01f9ec7

Please sign in to comment.