Allow users to override the installation path by setting the INSTALL_PATH
environment variable before running the script.
This can be useful in CI environments such as CircleCI where the default
/usr/local/bin path requires sudo privileges that may not be available or desired.
Usage:
- Default: curl -sSL https://get.livekit.io/cli | bash
- Custom: INSTALL_PATH="$HOME/.local/bin" curl -sSL https://get.livekit.io/cli | bash
uname exists in /bin on Ubuntu. As such, the installation fails.
The script determines the OS without specifying the complete path to uname. Do
the same in order to determine ARCH.