fix HEREDOC_LOOP

This commit is contained in:
pvincent
2026-08-21 20:10:02 +04:00
parent 31678ad6c7
commit 3fb232eab1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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"