diff options
author | Florian Bäuerle <florian.baeuerle@allegion.com> | 2018-09-18 16:18:16 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-09-20 08:12:21 +0200 |
commit | bf9f5b3a9f249e0aca81070b34c83c93d6b1cdcd (patch) | |
tree | 63f376d8e84d747e1d0fcbca76f3547a02251471 | |
parent | 062a2b70c63cf950c2fe5677f547d0cfa45a7d64 (diff) | |
download | ptxdist-bf9f5b3a9f249e0aca81070b34c83c93d6b1cdcd.tar.gz ptxdist-bf9f5b3a9f249e0aca81070b34c83c93d6b1cdcd.tar.xz |
ptxd_install_find: allow installing from /
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>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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}" |