From: Anthony PERARD Date: Wed, 11 Mar 2020 17:59:32 +0000 (+0000) Subject: tools/python: Fix install-wrap X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~241 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=78f81c6870dea1fe3a583b5e07eeb1cbb01461f0;p=xen.git tools/python: Fix install-wrap This allows to use install-wrap when the source scripts is in a subdirectory. Signed-off-by: Anthony PERARD Acked-by: Wei Liu --- diff --git a/tools/python/install-wrap b/tools/python/install-wrap index 00e2014016..fef24e0170 100755 --- a/tools/python/install-wrap +++ b/tools/python/install-wrap @@ -44,7 +44,7 @@ shift destf="$dest" for srcf in ${srcs}; do if test -d "$dest"; then - destf="$dest/${srcf%%*/}" + destf="$dest/${srcf##*/}" fi org="$(sed -n '2q; /^#! *\/usr\/bin\/env python *$/p' $srcf)" if test "x$org" = x; then