check valid files
This commit is contained in:
parent
195977b515
commit
4987fa9b32
2 changed files with 11 additions and 1 deletions
|
@ -17,7 +17,7 @@ parameters:
|
|||
- name: vmrBranch
|
||||
displayName: dotnet-dotnet branch to push to
|
||||
type: string
|
||||
default: ' '
|
||||
default: ''
|
||||
|
||||
variables:
|
||||
- ${{ if ne(parameters.vmrBranch, ' ') }}:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue