2
0
Fork 0
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:
Ray Lee 2016-01-06 09:27:49 -08:00
commit 1dc5d90b69

3
tldr
View file

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