From 4cfbadbe204f33d7f4fb25a14521bb054cda4690 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 21 Jun 2025 13:06:43 +0200 Subject: [PATCH] refactor: use one var for file_name --- new_journal.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/new_journal.sh b/new_journal.sh index d7b62df..0519cc5 100755 --- a/new_journal.sh +++ b/new_journal.sh @@ -5,9 +5,8 @@ echo "NEW NOTE" journal_dir="/home/ayo/notes/Journal" date_today=$(date +'%m-%d-%Y') -date_today_file_name=$(date +'%m.%d.%Y') +file_name=$(date +'%m.%d.%Y').md month_dir=$(date +"%m %b") -file_name="${date_today_file_name}.md" full_path="${journal_dir}/${month_dir}/${file_name}" # IF Not Exists: create file & echo date