Merge pull request #791 from KirillSmirnov/basename

scripts: remove superfluous dot
This commit is contained in:
Alexey Neyman 2017-08-14 09:38:39 -07:00 committed by GitHub
commit f555602f66

View File

@ -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