Sort and deduplicate gitignore file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-13 17:53:42 +02:00
parent f98389b81a
commit c41ccbba93
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,5 +1,9 @@
#!/bin/bash
set -euo pipefail
for i in "$@"; do
echo "$i" >>.gitignore
done
sort .gitignore | uniq >.gitignore.tmp
mv .gitignore.tmp .gitignore