Product: PowerShell Universal
Version: 4.3.4
Installation is based on a custom path on E:\Universal
(binaries) and E:\UniversalAutomation
(Repository)
Also the script base folder is adjusted to be .universal\Scripts
I can create scripts fine, but sometimes when editing a script (change name) the script gets duplicated and the -Path
in scrips.ps1
gets messed up, leading some issues.
For example my script “Test1.ps1” is located at E:\UniversalAutomation\Repository\.universal\Scripts\Tests\Test1.ps1
The path in the scripts.ps1
is -Path "Tests\Test1.ps1"
I now rename the script to “Test2.ps1” via UI and the following happens:
- The script will be renamed in its original location. (as expected)
- A copy will be created
E:\UniversalAutomation\Repository\Tests\Test2.ps1
ignoring the script base folder - The path in the
scripts.ps1
is adjusted and should look like this:-Path "Tests\Test2.ps1"
But it actually looks like this-Path "E:\UniversalAutomation\Repository\\Tests\Test2.ps1"
Yes, there is a double\\
in the path and it does not use the script base folder and it should not be absolute, but relative from the base folder. - Notification:
[Error] Invalid configuration: E:\UniversalAutomation\Repository\.universal\scripts.ps1 Cannot process argument because the value of argument "path" is null. Change the value of argument "path" to a non-null value.
Which is probably because of the wrong path.
Am I the only one renamimg scripts or is my installation borked?