[explorer/init] Fix unique() for Solaris

remotes/origin/matrix
Dennis Camera 5 years ago
parent 364340c8d5
commit 0d84c91b40
  1. 3
      cdist/conf/explorer/init

@ -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 }'
}

Loading…
Cancel
Save