wget_all.sh 628 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. set -euC
  3. if ! [ -d tarball_archive ]; then
  4. echo "Directory tarball_archive does not exist in the current directory" >&2
  5. exit 1
  6. fi
  7. base_url="https://wpd.home.xs4all.nl/symon/philes"
  8. wget -NP tarball_archive/ "$base_url"/{mon-2.{0,1,2,3,4},symon-2.{5,51,52,53,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88}}.tar.gz
  9. if [ -f tarball_hashes.sha256 ]; then
  10. if sha256 -qc tarball_hashes.sha256; then
  11. echo "Checks OK according to tarball_hashes.sha256" >&2
  12. else
  13. echo "Errors while verifying checksums according to tarball_hashes.sha256" >&2
  14. exit 1
  15. fi
  16. fi