From 7f1a4e4fc50c636d187472388924109e853ec69e 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_binary_local-packageslists | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpers/lh_binary_local-packageslists') diff --git a/helpers/lh_binary_local-packageslists b/helpers/lh_binary_local-packageslists index 265941688..144b1a62b 100755 --- a/helpers/lh_binary_local-packageslists +++ b/helpers/lh_binary_local-packageslists @@ -42,7 +42,7 @@ Check_lockfile .lock # Creating lock file Create_lockfile .lock -if ls config/binary_local-packageslists/* > /dev/null 2>&1 +if Find_files config/binary_local-packageslists/* then # Restoring cache Restore_cache cache/packages_chroot -- cgit v1.2.3