From d2141a12e910e1ce2527b6e41e8b24dd061a74e6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 12 Mar 2009 17:10:29 +0100 Subject: pkg: global post-update hook: Fixed parameters for checklinks (Did I already mention that the zsh patterns/expansion are extremely weird and not entirely behaving as documented?) --- bin/pkg | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/pkg b/bin/pkg index 6c2df3c..fdfd524 100755 --- a/bin/pkg +++ b/bin/pkg @@ -367,11 +367,9 @@ function global_hook { info "Running make\n" make } - # TODO: cover cases where $HOME ends in a / - # (just to be on the safe side) checklinks $CL_OPTIONS \ - --parameter package=${PWD#$HOME/} \ - --parameter etc=${PWD#$HOME/}/etc + --parameter package=${${PWD#$HOME}#/##} \ + --parameter etc=${${PWD#$HOME}#/##}/etc populate_collected $1 update_provides $1 list_update_package $1 -- cgit v1.2.3