2
0
mirror of https://github.com/pepa65/tldr-bash-client.git synced 2024-09-27 18:31:30 +02: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
force_update=''
#check if config folder exists, otherwise create it
[ -d "$configdir" ] || mkdir -p "$configdir"
[ ! -f $index ] && update_index
auto_update_index
}