From a13bb821a734044624bf7679515f5c6ba040555e Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Wed, 3 Mar 2021 18:22:02 +0100 Subject: [PATCH] Fix realpath usage on not existing path --- .local/bin/edit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/edit b/.local/bin/edit index f27b1a0..07563ee 100755 --- a/.local/bin/edit +++ b/.local/bin/edit @@ -11,9 +11,9 @@ edit_directory="$HOME/.cache/edit/" filehash=$(readlink -fn "$1" | md5sum | awk '{ print $1 }') filedirectory="$edit_directory/$filehash/" -filedirectory=$(realpath -s "$filedirectory") mkdir -p $filedirectory + filepath=$(realpath -s "$filedirectory/$(basename $1)") user=$(id -un)