git-ignore-io: make sure .gi_list is created before access

This commit is contained in:
spacewander 2022-04-08 21:05:56 +08:00
parent 678a0c2e71
commit 27ee8f0132

View file

@ -85,7 +85,7 @@ show_usage() {
check_list_exist() {
if ! [ -f "$default_path" ]; then
echo "-----Initial gitignore.io list----"
update_gi_list &
update_gi_list
echo "-----Save to $default_path-----"
echo
fi