1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08: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' [ "$1" != commit ] || die 'git not found'
dash ./sh/document || die 'failed to generate documentation' 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 else
# git available. document the most recent commit, without pending changes. # git available. document the most recent commit, without pending changes.