Check that the directory is a directory

This commit is contained in:
Pierre-Yves Chibon 2015-12-17 16:53:19 +01:00
parent 6c24e3212a
commit 3f881b3d22

View file

@ -10,7 +10,7 @@ newfile=`mktemp`
ls > $newfile
cd /srv/git/repositories/
for d in `ls`; do
if [ ! -L $d ]; then
if [ ! -L $d ] && [ -d $d ]; then
for f in `ls $d`; do
echo $d/$f >> $newfile;
done;