check valid files

This commit is contained in:
MilenaHristova 2023-02-08 15:25:44 +01:00
parent 195977b515
commit 4987fa9b32
2 changed files with 11 additions and 1 deletions

View file

@ -17,7 +17,7 @@ parameters:
- name: vmrBranch
displayName: dotnet-dotnet branch to push to
type: string
default: ' '
default: ''
variables:
- ${{ if ne(parameters.vmrBranch, ' ') }}:

View file

@ -141,6 +141,16 @@ if [[ ! -d "$installer_dir" ]]; then
exit 1
fi
if [[ ! -f "$readme_template" ]]; then
fail "File '$readme_template' does not exist. Please specify the path to the README template"
exit 1
fi
if [[ ! -f "$tpn_template" ]]; then
fail "File '$tpn_template' does not exist. Please specify the path to the THIRD-PARTY-NOTICES template"
exit 1
fi
if [[ -z "$tmp_dir" ]]; then
fail "Missing --tmp-dir argument. Please specify the path to the temporary folder where the repositories will be cloned"
exit 1