From edb725457885e078d25005a346be6a095c7f748d Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sat, 17 Feb 2024 19:15:58 +0200 Subject: [PATCH] Adding noter wrapper --- apsalar/noter | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 apsalar/noter diff --git a/apsalar/noter b/apsalar/noter new file mode 100755 index 0000000..85fc68b --- /dev/null +++ b/apsalar/noter @@ -0,0 +1,18 @@ +#!/bin/sh + +site_dir="$HOME/projects/siina.monster" + +current_date=$(date +%Y-%m-%d) +timestamp=$(date +%H:%M:%S) +current_note="$site_dir/notes/${current_date}.txt" + +if [ -z "$1" ]; then + echo -e "\n

$(echo $timestamp):

" >> $current_note + cd $site_dir && make +fi +echo -e "\n

$(echo $timestamp): ${1}

" >> $current_note + +cd $site_dir +./noter/noter.sh public +make push publish +