tools/python: Fix install-wrap

This allows to use install-wrap when the source scripts is in a
subdirectory.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
This commit is contained in:
Anthony PERARD authored and Wei Liu committed 2020-05-19 11:40:50 +01:00
1 parent 7efd9f3d45
commit 78f81c6870
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ shift
destf="$dest" destf="$dest"
for srcf in ${srcs}; do for srcf in ${srcs}; do
if test -d "$dest"; then if test -d "$dest"; then
destf="$dest/${srcf%%*/}" destf="$dest/${srcf##*/}"
fi fi
org="$(sed -n '2q; /^#! *\/usr\/bin\/env python *$/p' $srcf)" org="$(sed -n '2q; /^#! *\/usr\/bin\/env python *$/p' $srcf)"
if test "x$org" = x; then if test "x$org" = x; then
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.