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:
parent
baf8dee898
commit
687f9adfa8
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue