Double equals doesn't work between single brackets

the POSIX standard doesn't required `==` to work between single brackets. This change should fix the touchbar failing to reinitialize after suspend.
This commit is contained in:
Nelson Truran 2021-07-28 10:34:30 -07:00 committed by GitHub
parent 704a015391
commit f73f7da85c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
if [ "${1}" == "pre" ]; then
if [ "${1}" = "pre" ]; then
modprobe -r apple_ib_tb
elif [ "${1}" == "post" ]; then
elif [ "${1}" = "post" ]; then
modprobe apple_ib_tb
fi