From f414be1128f2dd68fe9e9b2c2e4bdeb57f036319 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 18 Apr 2019 22:14:44 +0200 Subject: make_deb: handle paths that contain '_' Signed-off-by: Michael Olbrich --- scripts/make_deb.sh | 6 +++--- 1 file 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}" -- cgit v1.2.3