From 8aa7fedebed4c7b707c0fde9f412235f235efce6 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 11 Aug 2014 12:56:03 -0700 Subject: [PATCH] fix regression --- teeu | 2 +- teeu-function | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teeu b/teeu index 9ff55ce..9a7345b 100755 --- a/teeu +++ b/teeu @@ -21,7 +21,7 @@ Tee unique. Append each LINE or if none, each stdin line to FILE if it does not fi local MAPFILE (( ${#@} >= 2 )) && MAPFILE="${@:2}" || mapfile -t - for line in "${$MAPFILE[@]}"; do + for line in "${MAPFILE[@]}"; do grep -xFq "$line" "$1" &>/dev/null || tee -a "$1" <<<"$line" done return 0 diff --git a/teeu-function b/teeu-function index e4705b7..735cd3f 100644 --- a/teeu-function +++ b/teeu-function @@ -21,7 +21,7 @@ Tee unique. Append each LINE or if none, each stdin line to FILE if it does not fi local MAPFILE (( ${#@} >= 2 )) && MAPFILE="${@:2}" || mapfile -t - for line in "${$MAPFILE[@]}"; do + for line in "${MAPFILE[@]}"; do grep -xFq "$line" "$1" &>/dev/null || tee -a "$1" <<<"$line" done return 0 -- 2.30.2