diff options
author | Kirill Smirnov <kirill.k.smirnov@gmail.com> | 2017-08-03 12:22:15 +0300 |
---|---|---|
committer | Kirill Smirnov <kirill.k.smirnov@gmail.com> | 2017-08-03 12:22:15 +0300 |
commit | aa757c345f8205967f40b185acc17ec002d6f628 (patch) | |
tree | 63505f2144b4d1d814a04ed324d47bd350b5cdf9 /scripts/functions | |
parent | bcaec4d80a1099a1039520cae47f11957809e217 (diff) | |
download | crosstool-ng-aa757c345f8205967f40b185acc17ec002d6f628.tar.gz crosstool-ng-aa757c345f8205967f40b185acc17ec002d6f628.tar.bz2 crosstool-ng-aa757c345f8205967f40b185acc17ec002d6f628.zip |
scripts: remove superfluous dot
Tarball extensions list already contains leading dot,
do not add another one.
Signed-off-by: Kirill Smirnov <kirill.k.smirnov@gmail.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index 5527fa21..6ce53b05 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 |