local-bin/apsalar/noter

20 lines
408 B
Text
Raw Normal View History

2024-02-17 19:15:58 +02:00
#!/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<p><b>$(echo $timestamp)</b>: </p>" >> $current_note
cd $site_dir && make
2024-02-17 19:17:48 +02:00
else
echo -e "\n<p><b>$(echo $timestamp)</b>: ${1}</p>" >> $current_note
2024-02-17 19:15:58 +02:00
fi
cd $site_dir
./noter/noter.sh public
make push publish