12 lines
198 B
Bash
12 lines
198 B
Bash
|
#!/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
|
||
|
}
|