abra/tests/integration/helpers/git.bash

12 lines
198 B
Bash
Raw Normal View History

2023-09-07 16:50:25 +00:00
#!/usr/bin/env bash
_checkout_recipe() {
if [[ -z "$1" ]]; then
echo 'forgot to pass argument to function?'
exit 1
fi
run git -C "$ABRA_DIR/recipes/$1" checkout .
assert_success
}