From 849dfeac6e62000c1630a6fae6d6c1d6efecd350 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 14 Oct 2017 13:51:17 -0400 Subject: [PATCH] still trying to uniquify sorting was apparently not the problem last time, although we have seen it be a problem before. the checkin on a host with feisty meow in home is still running the checkins twice, and this change just adds some debugging to see wtf. --- scripts/core/functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index c8bcfe34..af8a852f 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -84,10 +84,13 @@ if [ -z "$skip_all" ]; then function uniquify() { # change the eol character so things are easier. +echo "list before uniquify: $*" >~/uniquify.out HOLDIFS="$IFS" IFS=' ' # do the uniquification. - echo $* | sort | uniq + local chewed="$(echo $* | sort | uniq)" + echo $chewed +echo "list after uniquify: $chewed" >~/uniquify.out # return the former eol characters to their place. IFS="$HOLDIFS" } -- 2.34.1