From 268c0dd538ba427f7a54cb96f1e1b3fcc83fd6bf Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 8 Aug 2008 22:20:56 -0300 Subject: Replacing file checking with ls by function calls Instead of repeatedly doing "ls ... > /dev/null 2>&1", just use a function that does exactly that. --- helpers/lh_chroot_local-includes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpers/lh_chroot_local-includes') diff --git a/helpers/lh_chroot_local-includes b/helpers/lh_chroot_local-includes index afb5b84c2..c1308e1b3 100755 --- a/helpers/lh_chroot_local-includes +++ b/helpers/lh_chroot_local-includes @@ -42,7 +42,7 @@ Check_lockfile .lock # Creating lock file Create_lockfile .lock -if ls -A config/chroot_local-includes/ | grep -qs . > /dev/null 2>&1 +if Find_files config/chroot_local-includes/ then # Copying includes cd config/chroot_local-includes -- cgit v1.2.3