diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-06-11 14:54:41 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-06-11 14:56:06 +0200 |
commit | f6fd936d813b64480a16cfa051089cb3e3c64b4d (patch) | |
tree | d3e658bfc7a9635aadc937c4b0e8db7c6c5475c2 | |
parent | dd29dca718b29aa4719d3136c002abc687d196fd (diff) | |
download | ptxdist-f6fd936d813b64480a16cfa051089cb3e3c64b4d.tar.gz ptxdist-f6fd936d813b64480a16cfa051089cb3e3c64b4d.tar.xz |
ptxd_in_path: don't add trailing '/'
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/libptxdist.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index 67e1bb023..0686aea6d 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -559,7 +559,7 @@ ptxd_in_path() { local -a paths paths=( ${!1} ) IFS="${orig_IFS}" - paths=( "${paths[@]/%//${2}}" ) + paths=( "${paths[@]/%/${2:+/}${2}}" ) ptxd_get_path "${paths[@]}" } export -f ptxd_in_path |