Update git ignore script

The script was trying to be too smart and now no longer looks for actual
files but instead just adds everything to the gitignore file directly.

Use shell globbing for automatic file listing instead.
This commit is contained in:
Talia 2023-05-17 11:01:20 +02:00
parent 72451ccc12
commit c5e7a97424

View file

@ -4,5 +4,7 @@ if [ -z "$@" ]
then then
$(git config --get core.editor) $(git rev-parse --show-toplevel)/.git/info/exclude $(git config --get core.editor) $(git rev-parse --show-toplevel)/.git/info/exclude
else else
ls -d "$@" >> "$(git rev-parse --show-toplevel)/.git/info/exclude" for file in "$@"
do echo "$file" >> "$(git rev-parse --show-toplevel)/.git/info/exclude"
done
fi fi