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