improve test logic

(cherry picked from commit 0c942feaffa440735b97f609de795dbcf1e66518)
This commit is contained in:
a1346054 2022-09-03 00:39:32 +00:00 committed by Koichiro IWAO
parent 2857c39d0a
commit 63f16d229a

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