fix(zsh/install): test if directory exists instead of which omz

This commit is contained in:
Julien Oculi 2024-07-11 15:41:23 +02:00
parent 364183b7f9
commit 0aa7787ced

View file

@ -12,4 +12,4 @@ fi
nala install -y zsh eza
# 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