[arch-general] [PATCH 13/48] Make sourcing functions.d files a tiny bit shorter and faster.
Victor Lowther
victor.lowther at gmail.com
Wed Jun 30 17:47:43 EDT 2010
---
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
More information about the arch-general
mailing list