clan-infra/pkgs/action-checkout/script.sh
Jörg Thalheim 35b2e4a657
Some checks failed
build / test (push) Failing after 3s
move devShells out of flake-parts
2023-08-03 16:15:19 +02:00

11 lines
222 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# load BRANCH variable with default
BRANCH=${BRANCH:-main}
# load REPO_DIR variable with default
export REPO_DIR=${REPO_DIR:-.}
git clone --depth 1 --branch $BRANCH $REPO $REPO_DIR