From 856ede70b48c2aa0cacea29e450ceded2441bce7 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Mon, 8 Apr 2019 19:30:00 +0800 Subject: [PATCH] Nublette --- FaveSync.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FaveSync.sh b/FaveSync.sh index 4e04c19..bd46056 100755 --- a/FaveSync.sh +++ b/FaveSync.sh @@ -24,9 +24,8 @@ fi if [ "$1" = "apply" ]; then if find "${DIR}"/*.favourites.txt -type f -print -quit 2>/dev/null | grep -q .; then find "${DIR}"/*.favourites.txt -type f -print0 | while read -d $'\0' file; do - file=$(basename "$file") - IFS=$'\n' read -d '' -r -a lines < $file + file=$(basename "$file") person="${file%.*.*}" if [ "$person" = "$me" ]; then -- 2.11.0