-
Notifications
You must be signed in to change notification settings - Fork 325
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
1 parent
6c0b15b
commit 3a0ceb2
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters