fix 'command -v' not in csh (#45845)
This commit is contained in:
		@@ -62,9 +62,9 @@ if (! $?SPACK_PYTHON) then
 | 
				
			|||||||
    setenv SPACK_PYTHON ""
 | 
					    setenv SPACK_PYTHON ""
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
foreach cmd ("$SPACK_PYTHON" python3 python python2)
 | 
					foreach cmd ("$SPACK_PYTHON" python3 python python2)
 | 
				
			||||||
    command -v "$cmd" >& /dev/null
 | 
					    set status=`which "$cmd" >& /dev/null; echo $?`
 | 
				
			||||||
    if ($status == 0) then
 | 
					    if ($status == 0) then
 | 
				
			||||||
        setenv SPACK_PYTHON `command -v "$cmd"`
 | 
					        setenv SPACK_PYTHON `which "$cmd"`
 | 
				
			||||||
        break
 | 
					        break
 | 
				
			||||||
    endif
 | 
					    endif
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user