[explorer/init] Fix unique() for Solaris

This commit is contained in:
Dennis Camera 2020-02-20 22:55:46 +01:00
parent 364340c8d5
commit 0d84c91b40

View file

@ -135,7 +135,8 @@ trim() {
unique() {
# Delete duplicate lines (keeping input order)
awk '!x[$0]++'
# NOTE: Solaris AWK breaks without if/print construct.
awk '{ if (!x[$0]++) print }'
}