1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-16 17:23:24 -07:00

add option to use local files and ignore git

This commit is contained in:
Connor Olding 2021-08-01 07:08:57 -07:00
parent baf8dee898
commit 687f9adfa8

View File

@ -40,6 +40,10 @@ if ! which git >/dev/null 2>&1; then
[ "$1" != commit ] || die 'git not found'
dash ./sh/document || die 'failed to generate documentation'
elif [ "$1" = local ]; then
# user requested to ignore git.
dash ./sh/document || die 'failed to generate documentation'
else
# git available. document the most recent commit, without pending changes.