Add tests for 'run' and fix non-POSIX behavior

This commit is contained in:
Andrew Dunham 2021-07-12 22:36:20 -04:00
parent d7586c4071
commit dafb44313c
5 changed files with 148 additions and 7 deletions

4
run
View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -e
set -u
@ -53,7 +53,7 @@ run_group() {
}
run_unit() {
/bin/bash -l -c "set -e; set -u; set -o pipefail; source lib; source '$(root_path)/$*'"
/bin/sh -l -c "set -e; set -u; set -o pipefail; . ./lib; . '$(root_path)/$*'"
}
log_file() {