A quick defense to blank gitdirs.
This commit is contained in:
@@ -31,6 +31,7 @@ foreach dir ( ${cshenv_gitdirs} )
|
|||||||
|
|
||||||
_debug "Indir check: ${dir}"
|
_debug "Indir check: ${dir}"
|
||||||
set _dirarray=(${dir:s// /} )
|
set _dirarray=(${dir:s// /} )
|
||||||
|
if( ${#_dirarray} < 2 ) break
|
||||||
set _dirname="${_dirarray[1]}"
|
set _dirname="${_dirarray[1]}"
|
||||||
set _dirstore="${_dirarray[2]}"
|
set _dirstore="${_dirarray[2]}"
|
||||||
if( "${_masked_cwd}" == "${_dirname}" ) then
|
if( "${_masked_cwd}" == "${_dirname}" ) then
|
||||||
|
|||||||
Reference in New Issue
Block a user