From 4b0f0cbbcdd2fa680e6b05bed696072b72d29830 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 5 May 2026 10:29:16 -0700 Subject: [PATCH] Add a template to the README if it does not already have data. --- bashrc.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/bashrc.sh b/bashrc.sh index d279b6a..9fcb1f9 100644 --- a/bashrc.sh +++ b/bashrc.sh @@ -258,9 +258,23 @@ function init-video-contents { cd "$1" fi touch README.md - #touch title.md - #touch desc.md - #touch tags.md + if [[ ! -s README.md ]]; then + cat >> README.md <<- EOF + # title + + + + # desc + + + + # tags + + + + + EOF + fi mkdir -pv raw } alias init-video="init-video-contents"