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:
LeeW 2015-09-08 20:50:38 +08:00
parent 3ad2f6fa4a
commit fed97bf8db

View file

@ -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