Sort and deduplicate gitignore file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f98389b81a
commit
c41ccbba93
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
echo "$i" >>.gitignore
|
echo "$i" >>.gitignore
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sort .gitignore | uniq >.gitignore.tmp
|
||||||
|
mv .gitignore.tmp .gitignore
|
||||||
|
|
Loading…
Reference in a new issue