Adding noter wrapper
This commit is contained in:
parent
1881510bb7
commit
edb7254578
1 changed files with 18 additions and 0 deletions
18
apsalar/noter
Executable file
18
apsalar/noter
Executable file
|
@ -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<p><b>$(echo $timestamp)</b>: </p>" >> $current_note
|
||||||
|
cd $site_dir && make
|
||||||
|
fi
|
||||||
|
echo -e "\n<p><b>$(echo $timestamp)</b>: ${1}</p>" >> $current_note
|
||||||
|
|
||||||
|
cd $site_dir
|
||||||
|
./noter/noter.sh public
|
||||||
|
make push publish
|
||||||
|
|
Loading…
Reference in a new issue