fix(zsh/install): test if directory exists instead of which omz
This commit is contained in:
parent
364183b7f9
commit
0aa7787ced
|
@ -12,4 +12,4 @@ fi
|
||||||
nala install -y zsh eza
|
nala install -y zsh eza
|
||||||
|
|
||||||
# Check if Oh-My-ZSH already installed
|
# Check if Oh-My-ZSH already installed
|
||||||
which omz &> /dev/null || sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
test -d /root/.oh-my-zsh/ || sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
||||||
|
|
Loading…
Reference in a new issue