summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-14 16:38:39 (GMT)
committerGitHub <noreply@github.com>2017-08-14 16:38:39 (GMT)
commitf555602f6622eaf45bab6b28101eb2e5ba44bc7b (patch)
tree63505f2144b4d1d814a04ed324d47bd350b5cdf9
parentbcaec4d80a1099a1039520cae47f11957809e217 (diff)
parentaa757c345f8205967f40b185acc17ec002d6f628 (diff)
Merge pull request #791 from KirillSmirnov/basename
scripts: remove superfluous dot
-rw-r--r--scripts/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index 5527fa2..6ce53b0 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -658,8 +658,8 @@ CT_GetFileBasename()
local ext
for ext in $(CT_DoListTarballExt); do
- if [ "${bn%.${ext}}" != "${bn}" ]; then
- echo "${bn%.${ext}}"
+ if [ "${bn%${ext}}" != "${bn}" ]; then
+ echo "${bn%${ext}}"
exit 0
fi
done