From 3f881b3d22985f5c153c98ab03264eaeb9559a7c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 17 Dec 2015 16:53:19 +0100 Subject: [PATCH] Check that the directory is a directory --- roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh b/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh index 4d588bde93..1686e568b2 100644 --- a/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh +++ b/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh @@ -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;