Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: [CI] Only try to read vcpkg version from .env if it isn't spec…
…ified (apache#41805) ### Rationale for this change See apache#41599 (comment) This is a small tidy up of `install_vcpkg.sh` based on code review in apache#41599 after it was merged. Some uses of `install_vcpkg.sh` are in Docker containers where the `.env` file hasn't been copied. Rather than try to read it and ignore any errors, only read the `.env` file if the vcpkg version wasn't specified as an argument to the script. This way if there is an error reading the `.env` file and we do need the default version, the error should be more helpful. ### What changes are included in this PR? Update `install_vcpkg.sh` to only try to read the vcpkg version from `.env` if it isn't specified as an argument and don't ignore any errors. ### Are these changes tested? Yes, this script already runs as part of CI. ### Are there any user-facing changes? No Authored-by: Adam Reeve <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
- Loading branch information