improve test logic

(cherry picked from commit 0c942feaff)
This commit is contained in:
a1346054 2022-09-03 00:39:32 +00:00 committed by Koichiro IWAO
parent 2857c39d0a
commit 63f16d229a
1 changed files with 1 additions and 2 deletions

View File

@ -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