scripts/README.md
This directory contains various shell scripts used for development, testing, and deployment of the Firezone product.
We lint shell scripts in CI. To get your PR to pass, you'll want to ensure your local development environment is set up to lint shell scripts:
shfmt:
brew install shfmt on macOSshellcheck:
brew install shellcheck on macOSsudo apt-get install shellcheck on UbuntuThen just lint and format your shell scripts before you commit:
shfmt -i 4 **/*.sh
shellcheck --severity=warning **/*.sh
You can achieve this more easily by using pre-commit. See
CONTRIBUTING.
#!/usr/bin/env bash along with set -euox pipefail in general for dev
and test scripts.#!/bin/sh and simply
set -eu.