Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create ~/.ssh on Windows if it doesn't exist
Beaker executed `mkdir -p "~/.ssh"` on Windows hosts as part of the prebuilt steps sequence. However, when using cygwin bash, the double quotes behave like single quotes, disabling tilde expansion: $ realpath "~/.ssh" /home/Administrator/~/.ssh So '~' was a directory containing the '.ssh' directory. This was never noticed because all of our VM templates already have the expected ~/.ssh directory. But if the directory doesn't exist, then later steps would fail trying to write to ~/.ssh/environment. This commit changes beaker behavior in the case that the path starts with tilde and does not contain a space, so it's safe to not quote the path. See commit 54b35b7 which double quoted unix & windows, which caused a regression that was fixed in 54b35b7.
- Loading branch information