Download

net_download

Follow redirects on a URL and download the final target file, saving it under its remote filename in the current directory.

Arguments

  • $1 (string): URL to download

Exit codes

  • 0: Download succeeded
  • 1: Download failed

Output on stdout

  • Progress from curl

net_download_sourceforge

Download the best release of a SourceForge project for the current (or specified) platform. Requires 'curl' and 'jq'.

Example

net_download_sourceforge omegat
net_download_sourceforge omegat linux

Arguments

  • $1 (string): SourceForge project name
  • $2 (string): Target OS: linux, mac, or windows (default: auto-detect)

Exit codes

  • 0: Success
  • 1: Missing dependency or download failure