summaryrefslogtreecommitdiff
path: root/post-install.d/40git-rm
diff options
context:
space:
mode:
Diffstat (limited to 'post-install.d/40git-rm')
-rwxr-xr-xpost-install.d/40git-rm2
1 files changed, 1 insertions, 1 deletions
diff --git a/post-install.d/40git-rm b/post-install.d/40git-rm
index 680dac0..3d5289a 100755
--- a/post-install.d/40git-rm
+++ b/post-install.d/40git-rm
@@ -3,7 +3,7 @@ set -e
TAB=" "
-if [ -d .git ]; then
+if [ "$VCS" = git ] && [ -d .git ]; then
for file in $(git ls-files --deleted); do
if [ ! -d "$file" ]; then
git rm --quiet "$file"