linux.win.download.sh 325 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -e
  3. CACHE_DIR=$TRAVIS_BUILD_DIR/apt_mingw_cache/$1
  4. mkdir -p "$CACHE_DIR"
  5. pushd "$CACHE_DIR"
  6. # shellcheck disable=SC2086
  7. apt-get --print-uris --yes install $MINGW_PACKAGES | grep ^\' | cut -d\' -f2 > downloads.list
  8. wget -N --input-file downloads.list
  9. sudo cp ./*.deb /var/cache/apt/archives/
  10. popd