Skip to content

Commit

Permalink
refactor(core): ensure config path exists
Browse files Browse the repository at this point in the history
Co-Authored-By: r15ch13 <r15ch13+git@gmail.com>
  • Loading branch information
niheaven and r15ch13 committed May 10, 2019
1 parent f1c4a6c commit e9004e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function get_config($name, $default) {

function set_config($name, $val) {
if(!$scoopConfig) {
ensure (Split-Path -Path $configFile) | Out-Null
$scoopConfig = @{ $name = $val }
} else {
if($val -eq [bool]::TrueString -or $val -eq [bool]::FalseString) {
Expand Down

0 comments on commit e9004e1

Please sign in to comment.