From ed30a4d25be935fe864794ca91cd137c6c137d62 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 23 Jul 2009 17:56:41 +0200 Subject: [PATCH] Remove check for directories with -a Type of source is checked later anyway and using ls -p1 results in "dir/", which we should cleanup with "sed 's;/$;;' again, which is ugly. Signed-off-by: Nico Schottelius --- ccollect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccollect.sh b/ccollect.sh index 7c9c54a..cfd9b61 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -192,7 +192,7 @@ if [ "${USE_ALL}" = 1 ]; then # # get entries from sources # - ( cd "${CSOURCES}" && ls -p1 | grep '/$' > "${TMP}" ); ret=$? + ( cd "${CSOURCES}" && ls -1 > "${TMP}" ); ret=$? [ "${ret}" -eq 0 ] || _exit_err "Listing of sources failed. Aborting."