From b09cdfc3e40b4200dced11a1d19dd29337cf504c Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Sat, 26 Sep 2015 00:32:20 -0300 Subject: [PATCH] Fixes error when looking up documentation introduced when cleaning up lint errors --- lib/kickstart-doc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kickstart-doc b/lib/kickstart-doc index be9156c..1522b4b 100755 --- a/lib/kickstart-doc +++ b/lib/kickstart-doc @@ -2,7 +2,8 @@ list() { root_dir=$(kickstart root-dir) - find "$root_dir"/docs -type f | sed -e 's/.md$//' | cut -c "$(wc -c <<<$root_dir/docs/)"- | tr '/' '.' + length_of_path=$(wc -m <<<"$root_dir/docs/" | xargs) + find "$root_dir"/docs -type f | sed -e 's/.md$//' | cut -c "$length_of_path-" | tr '/' '.' } show() {