cfg/bin/gitignore
Knut Ahlers c41ccbba93
Sort and deduplicate gitignore file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-04-13 17:53:42 +02:00

9 lines
148 B
Bash
Executable file

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