summaryrefslogtreecommitdiff
path: root/auto/functions/debpool-hook
diff options
context:
space:
mode:
Diffstat (limited to 'auto/functions/debpool-hook')
-rw-r--r--auto/functions/debpool-hook6
1 files changed, 4 insertions, 2 deletions
diff --git a/auto/functions/debpool-hook b/auto/functions/debpool-hook
index c86a065..e56df34 100644
--- a/auto/functions/debpool-hook
+++ b/auto/functions/debpool-hook
@@ -1,6 +1,8 @@
#!/bin/bash
-if [ "$(basename "$0")" = "lb_chroot_local-hooks" ]; then
+current_script="$(basename "$0"|sed 's/^lb_//')"
+
+if [ "$current_script" = "chroot_local-hooks" ]; then
echo "HOOK: debpool@chroot_local-hooks"
if [ -e config/chroot_debpool ]; then
mkdir -p chroot/live
@@ -8,7 +10,7 @@ if [ "$(basename "$0")" = "lb_chroot_local-hooks" ]; then
fi
fi
-if [ "$(basename "$0")" = "lb_binary_rootfs" ]; then
+if [ "$current_script" = "binary_rootfs" ]; then
echo "HOOK: debpool@binary-rootfs"
for dir in chroot/chroot/live chroot/live
do