Skip to content

Commit 01c0c96

Browse files
authored
Update WSL.ps1
1 parent 81e6ed4 commit 01c0c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/WSL.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if ($LASTEXITCODE -ne 0) { throw "Could not install distro." }
2323
# https://github.com/microsoft/WSL-DistroLauncher/blob/2ed9a9335fc89a688a5150c95eff4fbdbc830f25/DistroLauncher/DistributionInfo.cpp#L8-L33
2424
wsl -d Ubuntu-18.04 -u root useradd -m "$username"
2525
if ($LASTEXITCODE -ne 0) { throw }
26-
wsl -d Ubuntu-18.04 -u root sh -c "echo "${username}:${password}`n" | chpasswd" # wrapped in sh -c to get the pipe to work
26+
wsl -d Ubuntu-18.04 -u root sh -c 'echo "${username}:${password}" | chpasswd' # wrapped in sh -c to get the pipe to work
2727
if ($LASTEXITCODE -ne 0) { throw }
2828
wsl -d Ubuntu-18.04 -u root chsh -s /bin/bash "$username"
2929
if ($LASTEXITCODE -ne 0) { throw }

0 commit comments

Comments
 (0)