2017-08-07 09:11:09 +00:00
|
|
|
#!/bin/bash
|
2018-04-13 15:53:42 +00:00
|
|
|
set -euo pipefail
|
2017-08-07 09:11:09 +00:00
|
|
|
|
|
|
|
for i in "$@"; do
|
2018-03-10 11:47:55 +00:00
|
|
|
echo "$i" >>.gitignore
|
2017-08-07 09:11:09 +00:00
|
|
|
done
|
2018-04-13 15:53:42 +00:00
|
|
|
|
|
|
|
sort .gitignore | uniq >.gitignore.tmp
|
|
|
|
mv .gitignore.tmp .gitignore
|