check for license bin
@@ -19,6 +19,7 @@ set CARGO_LICENSE_BIN=%BUILD_PREFIX%\.cargo\bin\cargo-license
set CARGO_LICENSES_FILE=%SRC_DIR%\%PKG_NAME%-%PKG_VERSION%-cargo-dependencies.json
cargo install --root "%BUILD_PREFIX%" cargo-license
+dir %CARGO_LICENSE_BIN% || goto :error
%CARGO_LICENSE_BIN% --json > %CARGO_LICENSES_FILE%
dir %CARGO_LICENSES_FILE% || goto :error
:: TODO: remove this?
