Add basename to edit command
This commit is contained in:
parent
d47923cdba
commit
6a53a49161
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ edit_directory="$HOME/.cache/edit/"
|
||||||
|
|
||||||
mkdir -p $edit_directory
|
mkdir -p $edit_directory
|
||||||
|
|
||||||
filename=$(readlink -fn "$1" | md5sum | awk '{ print $1 }')
|
filename=$(readlink -fn "$1" | md5sum | awk '{ print $1 }')-$(basename $1)
|
||||||
filepath="$edit_directory/$filename"
|
filepath="$edit_directory/$filename"
|
||||||
user=$(id -un)
|
user=$(id -un)
|
||||||
group=$(id -gn)
|
group=$(id -gn)
|
||||||
|
|
Loading…
Reference in a new issue