From 8fd787cf4b3cf959dc4067e278f4cce15f1328b9 Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Mon, 11 Mar 2024 18:17:06 -0400 Subject: Add quotes around variables that might not be set --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index eeb9d32..963016f 100755 --- a/install.sh +++ b/install.sh @@ -29,7 +29,7 @@ elif [ -f /usr/bin/doas ]; then fi # Fedora with the terra repo (Ultramarine) has keyd packaged -[ $distro = "fedora" ] && dnf info keyd -y&>> pkg.log && FEDORA_HAS_KEYD=1 +[ "$distro" = "fedora" ] && dnf info keyd -y&>> pkg.log && FEDORA_HAS_KEYD=1 if ! [ -f /usr/bin/keyd ]; then # if keyd isnt installed @@ -55,7 +55,7 @@ if ! [ -f /usr/bin/keyd ]; then $privesc apk add --no-interactive keyd &>> pkg.log ;; *) - if [ $FEDORA_HAS_KEYD -eq 1 ]; then + if [ "$FEDORA_HAS_KEYD" -eq 1 ]; then $privesc dnf install -y keyd &>> pkg.log else git clone https://github.com/rvaiya/keyd &>> pkg.log -- cgit 1.4.1-2-gfad0