Commit 170777c0 authored by AlmAck's avatar AlmAck
Browse files

remove duplicates in the packages list without changing the order

parent ec0ad989
......@@ -139,6 +139,10 @@ function list_packages() {
PACKAGES+=("${_line}")
done
done
# remove duplicates without changing the order
# (http://www.unixcl.com/2008/03/remove-duplicates-without-sorting-file.html)
PACKAGES=$(echo $PACKAGES | awk ' !x[$0]++')
return 0
}
......
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