diff options
author | Alexey Neyman <stilor@att.net> | 2017-08-14 16:38:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-14 16:38:39 (GMT) |
commit | f555602f6622eaf45bab6b28101eb2e5ba44bc7b (patch) | |
tree | 63505f2144b4d1d814a04ed324d47bd350b5cdf9 | |
parent | bcaec4d80a1099a1039520cae47f11957809e217 (diff) | |
parent | aa757c345f8205967f40b185acc17ec002d6f628 (diff) |
Merge pull request #791 from KirillSmirnov/basename
scripts: remove superfluous dot
-rw-r--r-- | scripts/functions | 4 |
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 |