Fixing minor bug
This commit is contained in:
Родитель
beae9f6330
Коммит
c61fccba4a
|
@ -45,9 +45,9 @@
|
||||||
|
|
||||||
Write-Host "-----------$PWD---------"
|
Write-Host "-----------$PWD---------"
|
||||||
$maxDirLength = 32
|
$maxDirLength = 32
|
||||||
if ( $pwd.Path.Length -gt $maxDirLength)
|
|
||||||
$shortRandomNumber = Get-Random -Maximum 999999 -Minimum 111111
|
$shortRandomNumber = Get-Random -Maximum 999999 -Minimum 111111
|
||||||
$shortRandomWord = -join ((65..90) | Get-Random -Count 6 | % {[char]$_})
|
$shortRandomWord = -join ((65..90) | Get-Random -Count 6 | % {[char]$_})
|
||||||
|
if ( $pwd.Path.Length -gt $maxDirLength)
|
||||||
{
|
{
|
||||||
$originalWorkingDirectory = $pwd
|
$originalWorkingDirectory = $pwd
|
||||||
Write-Host "Current working directory length is greather than $maxDirLength. Need to change the working directory."
|
Write-Host "Current working directory length is greather than $maxDirLength. Need to change the working directory."
|
||||||
|
|
Загрузка…
Ссылка в новой задаче