From e1f56a08ebee7be1e244ca3669438f7b94d632de Mon Sep 17 00:00:00 2001 From: 85pando <85pando@googlemail.com> Date: Wed, 6 Jan 2016 14:13:39 +0100 Subject: [PATCH] Fix #2 --- tldr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tldr b/tldr index ad6cf7b..26c320a 100755 --- a/tldr +++ b/tldr @@ -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 }