From 14c231b71860885e8d43f427919ab2b2d4784f0b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 13 Apr 2024 23:25:06 -0500 Subject: Set TARGET env var on files --- ok | 7 +++---- 1 file 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.. quietly(){ "$@" >/dev/null 2>&1; } allfiles(){ - cut -f2- <"$FRFILE" | - while read -r line - do eval "$line" - done + while read -r target line + do TARGET="$target" eval "$line" + done <"$FRFILE" } fr(){ # fr < TARGET JOB DEPS... -- cgit 1.4.1-21-gabe81