▶ shellscript.download

📱 For the full interactive experience, visit shellscript.download

← Home

load.sh

load.sh load
load.sh: Fetch a script from https://shellscript.download, cache it locally,
         and optionally execute it.

Cache location used by this script:
  $HOME/.shellscript/downloads/<script>.sh

Usage and options: load.sh --help

To update the loader, its completion and the scripts this machine has downloaded:
  load.sh --update

Notes about environment setup:
  The installer (install/loader) may create and manage additional directories such as
  $HOME/.shellscript/shellrc (for auto-loading during shell init) and
  $HOME/.shellscript/bin (added to PATH). This load.sh script itself only ensures
  the cache directory $HOME/.shellscript/downloads and uses it to store scripts.

Behavior:
  - If the cached file is missing at "$HOME/.shellscript/downloads/<script>.sh" OR
    if --update is passed, the script is downloaded from the remote URL.
  - After ensuring the cached script exists, it is executed with remaining arguments
    unless --dont-run is provided.
  - Exits with the same code as the executed script when run.

Return to Home