diff options
author | Case Duckworth | 2024-04-13 23:25:06 -0500 |
---|---|---|
committer | Case Duckworth | 2024-04-13 23:25:06 -0500 |
commit | 14c231b71860885e8d43f427919ab2b2d4784f0b (patch) | |
tree | 1c79dfbd2af466e50d4655b6cf1d9f0b84d9a8d4 | |
parent | Add 'ok -' which allows to do ok without death (diff) | |
download | ok-14c231b71860885e8d43f427919ab2b2d4784f0b.tar.gz ok-14c231b71860885e8d43f427919ab2b2d4784f0b.zip |
Set TARGET env var on files main
-rwxr-xr-x | ok | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ok b/ok index 22aa7bb..028518a 100755 --- a/ok +++ b/ok | |||
@@ -98,10 +98,9 @@ ok(){ # ok COMMAND ARGS.. | |||
98 | quietly(){ "$@" >/dev/null 2>&1; } | 98 | quietly(){ "$@" >/dev/null 2>&1; } |
99 | 99 | ||
100 | allfiles(){ | 100 | allfiles(){ |
101 | cut -f2- <"$FRFILE" | | 101 | while read -r target line |
102 | while read -r line | 102 | do TARGET="$target" eval "$line" |
103 | do eval "$line" | 103 | done <"$FRFILE" |
104 | done | ||
105 | } | 104 | } |
106 | 105 | ||
107 | fr(){ # fr < TARGET JOB DEPS... | 106 | fr(){ # fr < TARGET JOB DEPS... |