summaryrefslogtreecommitdiff
path: root/post-apt.d/40git-rm
blob: 680dac0883a762fb86f6e7663ff5077d0a46f63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

TAB="	"

if [ -d .git ]; then
	for file in $(git ls-files --deleted); do
		if [ ! -d "$file" ]; then 
			git rm --quiet "$file"
		fi
	done
fi