From 0aa7787cedab018e558570097680bed6ef782c49 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 11 Jul 2024 15:41:23 +0200 Subject: [PATCH] fix(zsh/install): test if directory exists instead of `which omz` --- zsh/_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/_install.sh b/zsh/_install.sh index a4ccf5f..ad21701 100644 --- a/zsh/_install.sh +++ b/zsh/_install.sh @@ -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