diff options
author | Antonio Terceiro <terceiro@softwarelivre.org> | 2008-08-08 22:20:56 -0300 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:37 +0100 |
commit | 7f1a4e4fc50c636d187472388924109e853ec69e (patch) | |
tree | f07000b79efde785760d3cd4247209b0ba483401 /helpers/lh_binary_chroot | |
parent | 382d244050abbfb9f9e52ec9383d333b158ded5d (diff) | |
download | live-build-7f1a4e4fc50c636d187472388924109e853ec69e.zip live-build-7f1a4e4fc50c636d187472388924109e853ec69e.tar.gz |
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_binary_chroot')
-rwxr-xr-x | helpers/lh_binary_chroot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_binary_chroot b/helpers/lh_binary_chroot index e78c725..9691bcc 100755 --- a/helpers/lh_binary_chroot +++ b/helpers/lh_binary_chroot @@ -77,7 +77,7 @@ then exit 0 fi -if [ "${LH_CACHE}" = "enabled" ] && ls cache/stages_rootfs/filesystem* > /dev/null 2>&1 +if [ "${LH_CACHE}" = "enabled" ] && Find_files cache/stages_rootfs/filesystem* then exit 0 fi |