Fixed a nonportable bash'ism: Use "=" for comparing strings
- the "==" operator is specific to bash, use "=" instead; it is compatible with the "test" utility and other shells (and posix, too)
This commit is contained in:
parent
f0a07fd424
commit
11950d6c2d
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "${ID_VENDOR_ID}" == "1781" ]; then
|
||||
if [ "${ACTION}" == "add" ]; then
|
||||
if [ "${ID_VENDOR_ID}" = "1781" ]; then
|
||||
if [ "${ACTION}" = "add" ]; then
|
||||
@CMAKE_INSTALL_PREFIX@/sbin/tdadmin controller connect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
|
||||
elif [ "${ACTION}" == "remove" ]; then
|
||||
elif [ "${ACTION}" = "remove" ]; then
|
||||
@CMAKE_INSTALL_PREFIX@/sbin/tdadmin controller disconnect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue