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

TAB="	"

for file in $(git status | egrep "^#${TAB}*deleted: *" | sed 's/.*deleted: *//'); do
	if [ ! -d "$file" ]; then 
		git rm "$file"
	fi
done