From 63f16d229aaeee6aa256885ab8fdc821f46bafba Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Sat, 3 Sep 2022 00:39:32 +0000 Subject: [PATCH] improve test logic (cherry picked from commit 0c942feaffa440735b97f609de795dbcf1e66518) --- genkeymap/dump-keymaps.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/genkeymap/dump-keymaps.sh b/genkeymap/dump-keymaps.sh index f3abb1fc..e46e8ab0 100755 --- a/genkeymap/dump-keymaps.sh +++ b/genkeymap/dump-keymaps.sh @@ -1,7 +1,6 @@ #!/bin/sh -command -v setxkbmap -if test $? -ne 0 +if ! command -v setxkbmap >/dev/null then echo "error, setxkbmap not found" exit 1