refactor: use one var for file_name
This commit is contained in:
parent
959dd17061
commit
4cfbadbe20
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue