This commit is contained in:
Shital Savekar 2018-04-12 21:11:57 -07:00
Родитель beae9f6330
Коммит c61fccba4a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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."