Skip to content

Commit

Permalink
🪲 [Fix]: Issues setting variable on Store hashtable (#4)
Browse files Browse the repository at this point in the history
## Description

- Fixed an issue while setting variable on Store hashtable.

## Type of change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] 📖 [Docs]
- [x] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [ ] 🚀 [Feature]
- [ ] 🌟 [Breaking change]

## Checklist

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
  • Loading branch information
MariusStorhaug authored Mar 16, 2024
1 parent f6b9b2e commit 7ff690d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Store/private/Set-StoreVariable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
if ($null -eq $Value) {
$script:Store.Remove($Name)
} else {
$script:Store.$Name = $Value
$script:Store["$Name"] = $Value
}
$script:Store | ConvertTo-Json | Set-Content -Path $script:Store.ConfigFileName -Force
}
Expand Down

0 comments on commit 7ff690d

Please sign in to comment.