From aa757c345f8205967f40b185acc17ec002d6f628 Mon Sep 17 00:00:00 2001 From: Kirill Smirnov Date: Thu, 3 Aug 2017 12:22:15 +0300 Subject: [PATCH] scripts: remove superfluous dot Tarball extensions list already contains leading dot, do not add another one. Signed-off-by: Kirill Smirnov --- scripts/functions | 4 ++-- 1 file 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