Browse Source

fix HEREDOC_LOOP

main
pvincent 2 weeks ago
parent
commit
3fb232eab1
  1. 2
      bin/miaou-bash
  2. 2
      lib/devmode.bash

2
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

2
lib/devmode.bash

@ -28,7 +28,7 @@ function dev_mode {
local hook="$target"/.git/hooks/pre-push
cat >"$hook" <<EOF
#!/usr/bin/env bash
#!/usr/bin/sh
test/miaou-bash.test.bash
EOF
chmod +x "$hook"

Loading…
Cancel
Save