[explorer/init] Fix unique() for Solaris
This commit is contained in:
parent
364340c8d5
commit
0d84c91b40
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ trim() {
|
||||||
|
|
||||||
unique() {
|
unique() {
|
||||||
# Delete duplicate lines (keeping input order)
|
# Delete duplicate lines (keeping input order)
|
||||||
awk '!x[$0]++'
|
# NOTE: Solaris AWK breaks without if/print construct.
|
||||||
|
awk '{ if (!x[$0]++) print }'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue