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 {
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