Skip to content

Downloads

Index

downloads::download_and_cat

Download a URL to a temp file and print its contents to stdout. Output: stdout — file contents

Arguments

  • $1 url

downloads::download_to_temp_file

Download a URL to a temp file and print the temp file path to stdout. Output: stdout — path to the temp file containing the downloaded content

Arguments

  • $1 url

downloads::download_and_run_script

Download a script from a URL, make it executable, and run it with any extra arguments. $2+ = arguments to pass to the script

Arguments

  • $1 (script): url

downloads::download_and_run_script_as_root

Download a script from a URL, make it executable, and run it as root with any extra arguments. $2+ = arguments to pass to the script

Arguments

  • $1 (script): url