From 4c91869c90847d214beb72eaa748ad864fbc5662 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 16 Nov 2018 13:38:09 +0100 Subject: [PATCH] Update gclone --- zsh/gclone.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/gclone.zsh b/zsh/gclone.zsh index fd2ce3b..8cad278 100644 --- a/zsh/gclone.zsh +++ b/zsh/gclone.zsh @@ -64,7 +64,8 @@ if [ -d "$GCLONE_PATH" ]; then total=`echo $found_dirs | wc -l` if [[ "" == "$found_dirs" ]]; then - echo "$1 not found" + echo "$1 not found, refreshing cache" + _cdg_refresh_cache return 2 elif [ $total -gt 1 ]; then counter=0 @@ -88,6 +89,7 @@ if [ -d "$GCLONE_PATH" ]; then if [ $? -ne 0 ]; then echo "cd didn't work, refreshing cache..." _cdg_refresh_cache + return 4 fi fi fi