We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71350a0 commit fe5f098Copy full SHA for fe5f098
dsc/tests/dsc_functions.tests.ps1
@@ -54,7 +54,7 @@ Describe 'tests for function expressions' {
54
'@
55
56
$expected = if ($IsWindows) {
57
- $env:SYSTEMDRIVE + '\'
+ $env:SYSTEMDRIVE
58
} else {
59
'/'
60
}
dsc_lib/src/configure/context.rs
@@ -47,7 +47,7 @@ impl Default for Context {
47
fn get_default_os_target_path() -> PathBuf {
48
// use SYSTEMDRIVE env var to get the default target path
49
let system_drive = std::env::var("SYSTEMDRIVE").unwrap_or_else(|_| "C:".to_string());
50
- PathBuf::from(system_drive).join("\\")
+ PathBuf::from(system_drive)
51
52
53
#[cfg(not(target_os = "windows"))]
0 commit comments