Use single equal sign in test

This commit is contained in:
T. R. Bernstein
2024-06-28 01:59:48 +02:00
committed by T. R. Bernstein
parent dee91ee451
commit 582f3773ae

View File

@@ -9,11 +9,11 @@ function ensureRightAccess() {
function getDataForMicrosoftKeyboard() {
local name="$1"
[ "$name" == "ProductID" ] && echo '0x7a5'
[ "$name" == "VendorID" ] && echo '0x45e'
[ "$name" == "LaunchdServiceName"] && echo 'de.astzweig.macos.launchdaemons.microsoft-keymapper'
[ "$name" == "BinaryName" ] && echo 'remap-keys-microsoft'
[ "$name" == "KeyMappings" ] && cat <<- KEYMAPPINGS
[ "$name" = "ProductID" ] && echo '0x7a5'
[ "$name" = "VendorID" ] && echo '0x45e'
[ "$name" = "LaunchdServiceName"] && echo 'de.astzweig.macos.launchdaemons.microsoft-keymapper'
[ "$name" = "BinaryName" ] && echo 'remap-keys-microsoft'
[ "$name" = "KeyMappings" ] && cat <<- KEYMAPPINGS
{"HIDKeyboardModifierMappingSrc": 0x700000065, "HIDKeyboardModifierMappingDst": 0x7000000e7},
{"HIDKeyboardModifierMappingSrc": 0x7000000e3, "HIDKeyboardModifierMappingDst": 0x7000000e2},
{"HIDKeyboardModifierMappingSrc": 0x7000000e2, "HIDKeyboardModifierMappingDst": 0x7000000e3}
@@ -22,11 +22,11 @@ function getDataForMicrosoftKeyboard() {
function getDataForLogitechKeyboard() {
local name="$1"
[ "$name" == "ProductID" ] && echo '0xc52b'
[ "$name" == "VendorID" ] && echo '0x46d'
[ "$name" == "LaunchdServiceName"] && echo 'de.astzweig.macos.launchdaemons.logitech-keymapper'
[ "$name" == "BinaryName" ] && echo 'remap-keys-logitech'
[ "$name" == "KeyMappings" ] && cat <<- KEYMAPPINGS
[ "$name" = "ProductID" ] && echo '0xc52b'
[ "$name" = "VendorID" ] && echo '0x46d'
[ "$name" = "LaunchdServiceName"] && echo 'de.astzweig.macos.launchdaemons.logitech-keymapper'
[ "$name" = "BinaryName" ] && echo 'remap-keys-logitech'
[ "$name" = "KeyMappings" ] && cat <<- KEYMAPPINGS
{"HIDKeyboardModifierMappingSrc": 0x7000000e6, "HIDKeyboardModifierMappingDst": 0x7000000e7},
{"HIDKeyboardModifierMappingSrc": 0x7000000e7, "HIDKeyboardModifierMappingDst": 0x7000000e6}
KEYMAPPINGS