From aa757c345f8205967f40b185acc17ec002d6f628 Mon Sep 17 00:00:00 2001 From: Kirill Smirnov Date: Thu, 3 Aug 2017 12:22:15 +0300 Subject: scripts: remove superfluous dot Tarball extensions list already contains leading dot, do not add another one. Signed-off-by: Kirill Smirnov 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 -- cgit v0.10.2-6-g49f6