summaryrefslogtreecommitdiff
path: root/examples/scripts
diff options
context:
space:
mode:
authornathansoz <sosnovsken@spu.edu>2014-08-18 15:55:24 -0700
committernathansoz <sosnovsken@spu.edu>2014-08-18 15:55:24 -0700
commitf0004b1604b191ed280cf8d5ef4fef36e7a3625d (patch)
tree3451fe65c4181bce6c25202ece3163a66344a533 /examples/scripts
parent379e31883cedca831e2c67a2e3d746651da621bb (diff)
downloadansible-f0004b1604b191ed280cf8d5ef4fef36e7a3625d.tar.gz
$powershellpath is called as ".$powershellpath"
$powershell path is set to "C:\powershell" at line 27. This is fine, but on line 82 $powershellpath is called as ".$powershellpath\$filename". Because the path at line 27 is absolute, a period preceding the $powershellpath is not required at 82. It actually causes an error: Start-Process : This command cannot be executed due to the error: Unknown error (0x80041002). At C:\users\Nathan Sosnovske\Documents\ps2to3.ps1:81 char:14 Start-Process <<<< -FilePath ".$powershellpath\$filename" -ArgumentList /quiet CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand Removing the period on line 82 before $powershellpath fixes this error.
Diffstat (limited to 'examples/scripts')
-rw-r--r--examples/scripts/upgrade_to_ps3.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scripts/upgrade_to_ps3.ps1 b/examples/scripts/upgrade_to_ps3.ps1
index fc924ccb64..693088b75f 100644
--- a/examples/scripts/upgrade_to_ps3.ps1
+++ b/examples/scripts/upgrade_to_ps3.ps1
@@ -79,4 +79,4 @@ else
$FileName = $DownLoadUrl.Split('/')[-1]
download-file $downloadurl "$powershellpath\$filename"
-Start-Process -FilePath ".$powershellpath\$filename" -ArgumentList /quiet
+Start-Process -FilePath "$powershellpath\$filename" -ArgumentList /quiet