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