From b7849a423821491c26d2147e4bfe7c286d3047ef Mon Sep 17 00:00:00 2001 From: Bigoudops Date: Sat, 17 Sep 2022 15:09:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20fix=20syntax=20for=20ShellCheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postinstall.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 postinstall.sh diff --git a/postinstall.sh b/postinstall.sh old mode 100644 new mode 100755 index 0ef8fc8..517161e --- a/postinstall.sh +++ b/postinstall.sh @@ -23,7 +23,7 @@ if [ ! -f "/usr/bin/shellcheck" ]; then ;; O | o | *) echo -e "${vert}installation de ShellCheck ${neutre}" - sudo dnf install -y shellcheck + sudo dnf install -y ShellCheck ;; esac else @@ -51,9 +51,10 @@ else echo "le script continue la vérification et l'installation des programmes" fi -if [ ! -f "/usr/bin/keepassxc"]; then +if [ ! -f "/usr/bin/keepassxc" ]; then echo -e "${vert}tu veux installer Keepassxc? ${neutre}" - read -r $keepassxc in + read -r "$keepassxc" + case $keepassxc in N | n) echo "KeepassXC ne sera pas installé, honte à toi" echo "le script continue la vérification et l'installation des programmes"