diff --git a/lib/core.ps1 b/lib/core.ps1 index 6367c6ffe5..165bc96466 100644 --- a/lib/core.ps1 +++ b/lib/core.ps1 @@ -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) {