mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_install_find: allow installing from /
@ 2018-09-18 14:18 Florian Bäuerle
  0 siblings, 0 replies; only message in thread
From: Florian Bäuerle @ 2018-09-18 14:18 UTC (permalink / raw)
  To: ptxdist

ptxt_install_find strips the last slash from a destination path. The
result is an empty path if installing to the root directory.

Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
---
 scripts/lib/ptxd_make_xpkg_pkg.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 5e69cefdc..d048415be 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -649,6 +649,7 @@ export -f ptxd_install_generic
 ptxd_install_find() {
     local src="${1%/}"
     local dst="${2%/}"
+    dst=${dst:-/}
     local usr="${3#-}"
     local grp="${4#-}"
     local strip="${5}"
-- 
2.19.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-18 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-18 14:18 [ptxdist] [PATCH] ptxd_install_find: allow installing from / Florian Bäuerle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox