Check that the directory is a directory
This commit is contained in:
parent
6c24e3212a
commit
3f881b3d22
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue