From 3fb232eab1dd5957cb97a0cf4bbb8efb3e5ebd1c Mon Sep 17 00:00:00 2001 From: pvincent Date: Fri, 21 Aug 2026 20:10:02 +0400 Subject: [PATCH] fix HEREDOC_LOOP --- bin/miaou-bash | 2 +- lib/devmode.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/miaou-bash b/bin/miaou-bash index 05c7852..cf198af 100755 --- a/bin/miaou-bash +++ b/bin/miaou-bash @@ -626,7 +626,7 @@ function version { function parse_options { HEREDOC=false if [[ $# == 0 ]]; then - if [[ -t 0 ]]; then + if [[ -t 0 || -v CHILD_PROCESS ]]; then >&2 echo 'ERROR: script expected!' builtin exit 2 else diff --git a/lib/devmode.bash b/lib/devmode.bash index 8a3041b..7f6c35b 100644 --- a/lib/devmode.bash +++ b/lib/devmode.bash @@ -28,7 +28,7 @@ function dev_mode { local hook="$target"/.git/hooks/pre-push cat >"$hook" <