summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-04-18 22:14:44 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-04-18 22:14:44 +0200
commitf414be1128f2dd68fe9e9b2c2e4bdeb57f036319 (patch)
tree5e55f427737588f7b84dd3963e48df6027978b2b
parent61103212887f18fe526e8fa2a0d73486861130c7 (diff)
downloadOSELAS.Toolchain-f414be1128f2dd68fe9e9b2c2e4bdeb57f036319.tar.gz
make_deb: handle paths that contain '_'
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-xscripts/make_deb.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/make_deb.sh b/scripts/make_deb.sh
index 9dc3298..1cb52d5 100755
--- a/scripts/make_deb.sh
+++ b/scripts/make_deb.sh
@@ -17,11 +17,11 @@ main() {
local ifs_orig="${IFS}"
IFS="_"
- set -- ${deb}
+ set -- ${deb##*/}
IFS="${ifs_orig}"
- local package="${1##*/}"
- local inst="${1%${package}}"
+ local package="${1}"
+ local inst="${deb%${package}*}"
local version="${2}"
local arch="${3%%.deb}"