Made a couple scripts
Monday May 8, 2023
Build and Deploy Script
#!/bin/bash
(cd /home/tyler/www/tsm ;
hugo ;
echo "uploading";
rsync -rtvzP ./public/* root@tsmckee.com:/var/www/tsm;
)
New Blog Script
#!/bin/bash
NAME=$1
(cd /home/tyler/www/tsm/;
hugo new blog/$NAME;
nvim content/blog/$NAME;
)
It’s kind of amazing how easy it is to program on linux. Or rather, its amazing how difficult windows makes it.
Tags: technology , updates