There was an error while loading. Please reload this page.
1 parent 381f4cd commit 29b1625Copy full SHA for 29b1625
support/truncate_repositories.sh
@@ -2,7 +2,7 @@
2
3
echo "Danger!!! Data Loss"
4
while true; do
5
- read -p "Do you wish to all directories except gitolite-admin.git from /home/git/repositories/ (y/n) ?: " yn
+ read -p "Do you wish to delete all directories (except gitolite-admin.git) from /home/git/repositories/ (y/n) ?: " yn
6
case $yn in
7
[Yy]* ) sh -c "find /home/git/repositories/. -maxdepth 1 -not -name 'gitolite-admin.git' -not -name '.' | xargs sudo rm -rf"; break;;
8
[Nn]* ) exit;;
0 commit comments