From ed5c2b804772ac2992023b8f78fbaf230640d66d Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 21 Jun 2025 13:15:44 +0200 Subject: [PATCH] refactor: readability --- new_journal.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/new_journal.sh b/new_journal.sh index a758c63..20768cb 100755 --- a/new_journal.sh +++ b/new_journal.sh @@ -1,9 +1,8 @@ #! /usr/bin/bash journal_dir="/home/ayo/notes/Journal" - -file_name=$(date +'%m.%d.%Y').md month_dir=$(date +"%m %b") +file_name=$(date +'%m.%d.%Y').md full_path="${journal_dir}/${month_dir}/${file_name}" # IF Not Exists: create file & echo date