mirror of
https://github.com/pepa65/tldr-bash-client.git
synced 2024-11-16 00:28:35 +01:00
Merge pull request #4 from 85pando/config-folder
Fix #2, when neither .tldr nor .config exist, the client silently fails.
This commit is contained in:
commit
1dc5d90b69
1 changed files with 3 additions and 0 deletions
3
tldr
3
tldr
|
@ -23,6 +23,9 @@ config() {
|
||||||
cache_days=14
|
cache_days=14
|
||||||
force_update=''
|
force_update=''
|
||||||
|
|
||||||
|
#check if config folder exists, otherwise create it
|
||||||
|
[ -d "$configdir" ] || mkdir -p "$configdir"
|
||||||
|
|
||||||
[ ! -f $index ] && update_index
|
[ ! -f $index ] && update_index
|
||||||
auto_update_index
|
auto_update_index
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue