Skip to content

Commit fe5f098

Browse files
committed
fix windows default to not including trailing backslash
1 parent 71350a0 commit fe5f098

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dsc/tests/dsc_functions.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Describe 'tests for function expressions' {
5454
'@
5555

5656
$expected = if ($IsWindows) {
57-
$env:SYSTEMDRIVE + '\'
57+
$env:SYSTEMDRIVE
5858
} else {
5959
'/'
6060
}

dsc_lib/src/configure/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Default for Context {
4747
fn get_default_os_target_path() -> PathBuf {
4848
// use SYSTEMDRIVE env var to get the default target path
4949
let system_drive = std::env::var("SYSTEMDRIVE").unwrap_or_else(|_| "C:".to_string());
50-
PathBuf::from(system_drive).join("\\")
50+
PathBuf::from(system_drive)
5151
}
5252

5353
#[cfg(not(target_os = "windows"))]

0 commit comments

Comments
 (0)