mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
[installer] use command -v to check for git
Quick fix to the script not finding git due to hash. Solves #6697.
This commit is contained in:
@@ -49,7 +49,7 @@ main() {
|
|||||||
umask g-w,o-w
|
umask g-w,o-w
|
||||||
|
|
||||||
printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
|
printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
|
||||||
hash git >/dev/null 2>&1 || {
|
command -v git >/dev/null 2>&1 || {
|
||||||
echo "Error: git is not installed"
|
echo "Error: git is not installed"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user