[SCM] live-config branch, debian-next, updated. debian/3.0_a36-1-6-g41c62d3

Daniel Baumann daniel at debian.org
Fri Apr 6 09:20:03 UTC 2012


The following commit has been merged in the debian-next branch:
commit 41c62d39d33083e49baadf9ab9fe376f59e9bd98
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Apr 6 11:19:23 2012 +0200

    Exiting early in hooks script if no hooks were specified.

diff --git a/scripts/config/999-hooks b/scripts/config/999-hooks
index 629dcb9..e177430 100755
--- a/scripts/config/999-hooks
+++ b/scripts/config/999-hooks
@@ -31,6 +31,11 @@ Hooks ()
 
 Process_hooks ()
 {
+	if [ -z "${LIVE_HOOKS}" ]
+	then
+		return
+	fi
+
 	for _HOOK in $(echo ${LIVE_HOOKS} | sed -e 's/|/ /g')
 	do
 		case "${_HOOK}" in

-- 
live-config



More information about the debian-live-changes mailing list