mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Not to update list each time git-ignore-io is executed
* Check whether the list exists. If not, get it. * Update should use -u option manually
This commit is contained in:
parent
3ad2f6fa4a
commit
fed97bf8db
|
|
@ -62,7 +62,13 @@ show_usage() {
|
|||
}
|
||||
|
||||
|
||||
update_gi_list &
|
||||
check_list_exist() {
|
||||
if ! [ -f $default_path ]; then
|
||||
update_gi_list &
|
||||
fi
|
||||
}
|
||||
|
||||
check_list_exist
|
||||
if [[ $# -eq 0 ]]; then
|
||||
show_usage
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue