Update gclone

This commit is contained in:
Thomas Forgione 2018-11-16 13:38:09 +01:00
parent 0dfd436738
commit 4c91869c90
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 3 additions and 1 deletions

View File

@ -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