From: Chris Koeritz Date: Sat, 14 Oct 2017 17:51:17 +0000 (-0400) Subject: still trying to uniquify X-Git-Tag: 2.140.90~137 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=849dfeac6e62000c1630a6fae6d6c1d6efecd350;p=feisty_meow.git 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. --- 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" }