mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-14 10:55:18 +00:00
detect broken clones and delete them
This commit is contained in:
parent
52a7995f8f
commit
a7aecff143
6
all
6
all
@ -235,6 +235,12 @@ listrepos()
|
||||
$ECHO "$d"
|
||||
continue
|
||||
fi
|
||||
# remove broken clones so they don't mess up stuff
|
||||
if [ x"$d" != x"." ] && [ -d "$d" ] && ! [ -d "$d/.git" ]; then
|
||||
msg "$d exists but has no .git subdir. Probably a broken clone. Deleting."
|
||||
verbose rm -rf "$d"
|
||||
continue
|
||||
fi
|
||||
# if we have the dir, always keep it
|
||||
if [ -d "$d" ]; then
|
||||
msg "Repository $d enabled because it already exists"
|
||||
|
Loading…
Reference in New Issue
Block a user