devmode hook pre-push
This commit is contained in:
@@ -25,6 +25,13 @@ function dev_mode {
|
||||
git clone "$GIT_URL"
|
||||
sudo rm "$MIAOU_BASH_DIR" -rf
|
||||
sudo ln -s "$target" "$MIAOU_BASH_DIR"
|
||||
|
||||
local hook="$target"/.git/hooks/pre-push
|
||||
cat >"$hook" <<EOF
|
||||
#!/usr/bin/env bash
|
||||
test/miaou-bash.test.bash
|
||||
EOF
|
||||
chmod +x "$hook"
|
||||
}
|
||||
|
||||
function assert_reachable_target {
|
||||
|
||||
Reference in New Issue
Block a user