fixed inline script

This commit is contained in:
Nikita Bykov
2020-03-11 12:12:54 +03:00
parent 3408bb4e1a
commit c8fe3857b9

View File

@@ -60,7 +60,8 @@ jobs:
inputs:
targetType: 'inline'
script: |
Get-Content ((Get-ChildItem -Path "images" -Include ${{ parameters.image_readme_name }} -Recurse -Depth 1).FullName)
$docsPath = (Get-ChildItem -Path "images" -Include ${{ parameters.image_readme_name }} -Recurse -Depth 1 | Select-Object -First 1
Get-Content -Path $docsPath
- task: PowerShell@2
displayName: 'Clean up resources'