about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2024-04-13 23:25:06 -0500
committerCase Duckworth2024-04-13 23:25:06 -0500
commit14c231b71860885e8d43f427919ab2b2d4784f0b (patch)
tree1c79dfbd2af466e50d4655b6cf1d9f0b84d9a8d4
parentAdd 'ok -' which allows to do ok without death (diff)
downloadok-main.tar.gz
ok-main.zip
Set TARGET env var on files main
-rwxr-xr-xok7
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..
98quietly(){ "$@" >/dev/null 2>&1; } 98quietly(){ "$@" >/dev/null 2>&1; }
99 99
100allfiles(){ 100allfiles(){
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
107fr(){ # fr < TARGET JOB DEPS... 106fr(){ # fr < TARGET JOB DEPS...