From 0eed077cc2629bbfa51f8d7786b6828d5e2f5032 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 16 Dec 2023 20:38:07 +0100 Subject: [PATCH] Fix edit script --- .bin/edit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bin/edit b/.bin/edit index c7710c8..cd31b73 100755 --- a/.bin/edit +++ b/.bin/edit @@ -2,7 +2,7 @@ set -e -edit_dir_base="$XDG_RUNTIME_DIR/edit/" +edit_dir_base="$XDG_RUNTIME_DIR/edit" _pre_checks() { if [ -z "$EDITOR" ]; then @@ -30,7 +30,7 @@ _get_edit_directory() { target_dir=$(dirname "$1") edit_dir_sub=$(_readlink "$target_dir" | md5sum | awk '{ print $1 }') - edit_directory="$edit_dir_base/$edit_dir_sub/" + edit_directory="$edit_dir_base/$edit_dir_sub" echo "$edit_directory" } @@ -39,7 +39,7 @@ _get_edit_file() { target_name=$(basename "$target") edit_directory=$(_get_edit_directory "$target") - edit_file=$(realpath -s "$edit_directory/$target_name") + edit_file="$edit_directory/$target_name" echo "$edit_file" }