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>
This commit is contained in:
Kirill Smirnov 2017-08-03 12:22:15 +03:00
parent bcaec4d80a
commit aa757c345f

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