Fix realpath usage on not existing path
This commit is contained in:
parent
4f12f262f6
commit
a13bb821a7
1 changed files with 1 additions and 1 deletions
|
@ -11,9 +11,9 @@ edit_directory="$HOME/.cache/edit/"
|
||||||
|
|
||||||
filehash=$(readlink -fn "$1" | md5sum | awk '{ print $1 }')
|
filehash=$(readlink -fn "$1" | md5sum | awk '{ print $1 }')
|
||||||
filedirectory="$edit_directory/$filehash/"
|
filedirectory="$edit_directory/$filehash/"
|
||||||
filedirectory=$(realpath -s "$filedirectory")
|
|
||||||
|
|
||||||
mkdir -p $filedirectory
|
mkdir -p $filedirectory
|
||||||
|
|
||||||
filepath=$(realpath -s "$filedirectory/$(basename $1)")
|
filepath=$(realpath -s "$filedirectory/$(basename $1)")
|
||||||
|
|
||||||
user=$(id -un)
|
user=$(id -un)
|
||||||
|
|
Loading…
Reference in a new issue