mirror of
https://github.com/lloeki/apply.git
synced 2025-12-06 17:24:39 +01:00
Add tests for 'run' and fix non-POSIX behavior
This commit is contained in:
parent
d7586c4071
commit
dafb44313c
5 changed files with 148 additions and 7 deletions
4
run
4
run
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue