Commit 0d84c91b authored by ssrq's avatar ssrq

[explorer/init] Fix unique() for Solaris

parent 364340c8
......@@ -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 }'
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment