From d5802a7fb4f86c335830907cf0b38313215be0c9 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 20 Sep 2023 15:10:31 +0200 Subject: [PATCH] fix if statement --- arch-graphical-install-auto.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch-graphical-install-auto.sh b/arch-graphical-install-auto.sh index aff07e7..de9940a 100755 --- a/arch-graphical-install-auto.sh +++ b/arch-graphical-install-auto.sh @@ -673,10 +673,12 @@ echo '## Give ydotoold access to the uinput device KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput" ' > /etc/udev/rules.d/80-uinput.rules -wget https://alphacephei.com/vosk/models/vosk-model-small-de-0.15.zip -unzip vosk-model-small-de-0.15.zip -mkdir -p /home/${user}/.config/nerd-dictation/ -mv vosk-model-small-de-0.15 /home/${user}/.config/nerd-dictation/model +if ! [ -d /home/${user}/.config/nerd-dictation/model ]; then + wget https://alphacephei.com/vosk/models/vosk-model-small-de-0.15.zip + unzip vosk-model-small-de-0.15.zip + mkdir -p /home/${user}/.config/nerd-dictation/ + mv vosk-model-small-de-0.15 /home/${user}/.config/nerd-dictation/model +fi # thinkpad docking station Ultra #aurinstaller evdi-git