diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-04-18 22:14:44 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-04-18 22:14:44 +0200 |
commit | f414be1128f2dd68fe9e9b2c2e4bdeb57f036319 (patch) | |
tree | 5e55f427737588f7b84dd3963e48df6027978b2b | |
parent | 61103212887f18fe526e8fa2a0d73486861130c7 (diff) | |
download | OSELAS.Toolchain-f414be1128f2dd68fe9e9b2c2e4bdeb57f036319.tar.gz OSELAS.Toolchain-f414be1128f2dd68fe9e9b2c2e4bdeb57f036319.tar.xz |
make_deb: handle paths that contain '_'
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-x | scripts/make_deb.sh | 6 |
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}" |