Add a template to the README if it does not already have data.
This commit is contained in:
20
bashrc.sh
20
bashrc.sh
@@ -258,9 +258,23 @@ function init-video-contents {
|
|||||||
cd "$1"
|
cd "$1"
|
||||||
fi
|
fi
|
||||||
touch README.md
|
touch README.md
|
||||||
#touch title.md
|
if [[ ! -s README.md ]]; then
|
||||||
#touch desc.md
|
cat >> README.md <<- EOF
|
||||||
#touch tags.md
|
# title
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# desc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# tags
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
mkdir -pv raw
|
mkdir -pv raw
|
||||||
}
|
}
|
||||||
alias init-video="init-video-contents"
|
alias init-video="init-video-contents"
|
||||||
|
|||||||
Reference in New Issue
Block a user