summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_local-patches
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@softwarelivre.org>2008-08-08 22:20:56 -0300
committerDaniel Baumann <daniel@debian.org>2008-08-09 03:27:52 +0200
commit268c0dd538ba427f7a54cb96f1e1b3fcc83fd6bf (patch)
tree8eb20256392174b60b945b321c73b10bdc1436d6 /helpers/lh_chroot_local-patches
parenta3277ebaaee064a514192595b3b8e0de1b889cb8 (diff)
downloadvyos-live-build-268c0dd538ba427f7a54cb96f1e1b3fcc83fd6bf.tar.gz
vyos-live-build-268c0dd538ba427f7a54cb96f1e1b3fcc83fd6bf.zip
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.
Diffstat (limited to 'helpers/lh_chroot_local-patches')
-rwxr-xr-xhelpers/lh_chroot_local-patches2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_chroot_local-patches b/helpers/lh_chroot_local-patches
index b40e114e1..ead253ffc 100755
--- a/helpers/lh_chroot_local-patches
+++ b/helpers/lh_chroot_local-patches
@@ -42,7 +42,7 @@ Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
-if ls -A config/chroot_local-patches/ | grep -qs . > /dev/null 2>&1
+if Find_files config/chroot_local-patches/
then
# Restoring cache
Restore_cache cache/packages_chroot