fix HEREDOC_LOOP
This commit is contained in:
+1
-1
@@ -626,7 +626,7 @@ function version {
|
|||||||
function parse_options {
|
function parse_options {
|
||||||
HEREDOC=false
|
HEREDOC=false
|
||||||
if [[ $# == 0 ]]; then
|
if [[ $# == 0 ]]; then
|
||||||
if [[ -t 0 ]]; then
|
if [[ -t 0 || -v CHILD_PROCESS ]]; then
|
||||||
>&2 echo 'ERROR: script expected!'
|
>&2 echo 'ERROR: script expected!'
|
||||||
builtin exit 2
|
builtin exit 2
|
||||||
else
|
else
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ function dev_mode {
|
|||||||
|
|
||||||
local hook="$target"/.git/hooks/pre-push
|
local hook="$target"/.git/hooks/pre-push
|
||||||
cat >"$hook" <<EOF
|
cat >"$hook" <<EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/sh
|
||||||
test/miaou-bash.test.bash
|
test/miaou-bash.test.bash
|
||||||
EOF
|
EOF
|
||||||
chmod +x "$hook"
|
chmod +x "$hook"
|
||||||
|
|||||||
Reference in New Issue
Block a user