mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Use TEMP variable instead of hardcoded path (#35380)
The script fails if a Temp directory is not present in the system drive (e.g. C:\Temp). This can be solved by using the TEMP environment variable instead.
This commit is contained in:
parent
3605c19377
commit
1baa9b4d90
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ This is an example of how to run this script from PowerShell:
|
||||||
.. code-block:: powershell
|
.. code-block:: powershell
|
||||||
|
|
||||||
$url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Upgrade-PowerShell.ps1"
|
$url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Upgrade-PowerShell.ps1"
|
||||||
$file = "$env:SystemDrive\temp\Upgrade-PowerShell.ps1"
|
$file = "$env:TEMP\Upgrade-PowerShell.ps1"
|
||||||
$username = "Administrator"
|
$username = "Administrator"
|
||||||
$password = "Password"
|
$password = "Password"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue