FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 06-30-2010, 09:47 PM
Victor Lowther
 
Default Make sourcing functions.d files a tiny bit shorter and faster.

---
functions | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/functions b/functions
index 9730150..9c89ea1 100644
--- a/functions
+++ b/functions
@@ -278,9 +278,7 @@ EOF

# Source additional functions at the end to allow overrides
for f in /etc/rc.d/functions.d/*; do
- if [ -e $f ]; then
- . $f
- fi
+ [[ -e $f ]] && . "$f"
done

# End of file
--
1.7.1
 

Thread Tools




All times are GMT. The time now is 02:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org