summaryrefslogtreecommitdiff
path: root/post-apt.d/40git-rm
blob: 01161ca35e3a64d74f67e258940a1f70698dd36e (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 "$file"
		fi
	done
fi