diff --git a/atom b/atom index 66cc34f..9302fde 100755 --- a/atom +++ b/atom @@ -642,7 +642,7 @@ do getDestFile for copy_ext in "${destinationcopyext[@]}" do - if [[ $filename =~ '.*\.'$copy_ext'$' ]] + if [[ $filename =~ '.*'"$copy_ext" ]] then copied=1 break