fix(shellcheck): comply with shellcheck and update README

pull/18/head
kevin zhuang 4 years ago
parent 868cf2d80b
commit 15db38463f

@ -509,6 +509,8 @@ Note: do not use this command if you are using symlink/GNU stow.
- Default: initialise a git bare repository at \$DOTBARE_DIR
- -u URL: migrate existing bare repository from remote to current system.
- -s: if you have defined submodules in your bare repo (i.e. containes .gitmodule), add -s
flag to clone submodules as well during migration.
### funtrack

@ -40,7 +40,7 @@ post_hooks=()
while getopts ":hu:ys" opt; do
case "$opt" in
s)
[[ ! "${post_hooks[*]}" =~ "submodule" ]] && \
[[ ! "${post_hooks[*]}" =~ submodule ]] && \
post_hooks+=("submodule")
;;
u)

Loading…
Cancel
Save