diff --git a/atom b/atom index 6c9ae7b..9ad81d4 100755 --- a/atom +++ b/atom @@ -1186,6 +1186,9 @@ sanitizeFile() { # Filenames can't begin or end with ' ' string=${string/#+( )/} string=${string/%+( )/} + + # Filenames can't end with '.' + string=${string/%+(.)/} fi echo "$string" }