summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index 1f1bf21..ed8eb67 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