Added "dotfile" prefix to dotfiles in the trashcan.
This commit is contained in:
parent
cd1e34565d
commit
702303946f
3
trash
3
trash
@ -228,6 +228,9 @@ function trash_file {
|
|||||||
|
|
||||||
trashname="${filename##*/}"
|
trashname="${filename##*/}"
|
||||||
origname="${trashname%%.*}"
|
origname="${trashname%%.*}"
|
||||||
|
if [ -z "${origname}" ]; then
|
||||||
|
origname="dotfile"
|
||||||
|
fi
|
||||||
ext=".${trashname##*.}"
|
ext=".${trashname##*.}"
|
||||||
if [ "$ext" == ".$trashname" ]; then
|
if [ "$ext" == ".$trashname" ]; then
|
||||||
ext=""
|
ext=""
|
||||||
|
Loading…
Reference in New Issue
Block a user