fix: make agent scripts easier to troubleshoot (#2922)

- Adds distinct exit statuses to the bootstrap scripts
- Makes the bootstrap scripts loop forever trying to download the coder agent
- Surfaces and logs the status codes returned by the download tool
This commit is contained in:
Cian Johnston
2022-07-13 10:17:40 +01:00
committed by GitHub
parent 6f34cbff1e
commit 0f5f30b6f6
5 changed files with 93 additions and 20 deletions

View File

@ -5,7 +5,7 @@
set -euo pipefail
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
# shellcheck disable=SC1091
# shellcheck disable=SC1091,SC1090
source "${SCRIPT_DIR}/lib.sh"
PROJECT_ROOT=$(cd "$SCRIPT_DIR" && git rev-parse --show-toplevel)