From 6e1a520cd80e5e2aa6593e535e07e98a0d685206 Mon Sep 17 00:00:00 2001 From: pepa65 Date: Wed, 9 Aug 2017 23:56:23 +0700 Subject: [PATCH] Prevent undesirable output of type Fix missing argument of Cache_fill --- tldr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tldr b/tldr index e5c609e..cab9dfa 100755 --- a/tldr +++ b/tldr @@ -182,7 +182,7 @@ Recent(){ find "$1" -mtime -"${TLDR_EXPIRY// /}" >/dev/null 2>&1;} # Initialize globals, check the environment; Uses: config cachedir version # Sets: stdout os version dl Config(){ - type -p less 2>/dev/null || TLDR_LESS=0 + type -p less >/dev/null || TLDR_LESS=0 os=common stdout='' Q='"' N=$'\n' case "$(uname -s)" in @@ -219,7 +219,7 @@ Config(){ } index=$cachedir/index.json # update if the file doesn't exists, or if it's older than $TLDR_EXPIRY - [[ -f $index ]] && Recent "$index" || Cache_fill + [[ -f $index ]] && Recent "$index" || Cache_fill 0 } # $1: error message; Uses: md REPLY ln