improve test logic

This commit is contained in:
a1346054 2022-09-03 00:39:32 +00:00
parent 5ff68740e5
commit 0c942feaff
No known key found for this signature in database
GPG Key ID: D149AD21DC40440C

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