diff options
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index 1f1bf219..ed8eb677 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 |