diff options
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -518,8 +518,12 @@ t-policy-admin () { t-policy () { local policyhook=$1 - ln -sf ${DGIT_INFRA_PFX}$policyhook \ - $drs_dispatch/policy-hook + policyhook=${DGIT_INFRA_PFX}$policyhook + case $policyhook in + */*) ;; + *) policyhook=`type -P $policyhook` ;; + esac + ln -sf "$policyhook" $drs_dispatch/policy-hook } t-debpolicy () { |