Page MenuHomePhabricator

D10776.diff
No OneTemporary

D10776.diff

diff --git a/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
--- a/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
+++ b/src/applications/drydock/blueprint/DrydockAmazonEC2HostBlueprintImplementation.php
@@ -914,7 +914,7 @@
break;
} catch (Exception $ex) {
if ($attempts == 0) {
- throw ex;
+ throw $ex;
}
sleep(5);
diff --git a/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php b/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php
--- a/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php
+++ b/src/applications/drydock/interface/command/DrydockWinRMCommandInterface.php
@@ -38,7 +38,14 @@
$change_directory = '';
if ($this->getWorkingDirectory() !== null) {
- $change_directory .= 'cd '.$this->getWorkingDirectory().' & ';
+ $working_directory = $this->getWorkingDirectory();
+ if (strlen($working_directory) >= 2 && $working_directory[1] === ':') {
+ // We must also change drive.
+ $drive = $working_directory[0];
+ $change_directory .= 'cd '.$working_directory.' & '.$drive.': & ';
+ } else {
+ $change_directory .= 'cd '.$working_directory.' & ';
+ }
}
switch ($this->getEscapingMode()) {

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 3:09 PM (21 h, 10 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6907838
Default Alt Text
D10776.diff (1 KB)

Event Timeline