Update gclone
This commit is contained in:
parent
0dfd436738
commit
4c91869c90
|
@ -64,7 +64,8 @@ if [ -d "$GCLONE_PATH" ]; then
|
||||||
total=`echo $found_dirs | wc -l`
|
total=`echo $found_dirs | wc -l`
|
||||||
|
|
||||||
if [[ "" == "$found_dirs" ]]; then
|
if [[ "" == "$found_dirs" ]]; then
|
||||||
echo "$1 not found"
|
echo "$1 not found, refreshing cache"
|
||||||
|
_cdg_refresh_cache
|
||||||
return 2
|
return 2
|
||||||
elif [ $total -gt 1 ]; then
|
elif [ $total -gt 1 ]; then
|
||||||
counter=0
|
counter=0
|
||||||
|
@ -88,6 +89,7 @@ if [ -d "$GCLONE_PATH" ]; then
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "cd didn't work, refreshing cache..."
|
echo "cd didn't work, refreshing cache..."
|
||||||
_cdg_refresh_cache
|
_cdg_refresh_cache
|
||||||
|
return 4
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue