From 09ed55a17e62ea6e3a6e277f172357e069f89a7c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 1 Jul 2009 17:09:30 +0200 Subject: [PATCH] only consider directories as sources Signed-off-by: Nico Schottelius --- ccollect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index 10c50f8..8523d3a 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -197,7 +197,7 @@ if [ "${USE_ALL}" = 1 ]; then # get entries from sources # cwd="$(pwd -P)" - ( cd "${CSOURCES}" && ls > "${TMP}" ); ret=$? + ( cd "${CSOURCES}" && ls -p1 > "${TMP}" | grep '/$' ); ret=$? [ "${ret}" -eq 0 ] || _exit_err "Listing of sources failed. Aborting."