Browse Source

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.
pull/41/head
Nelson Truran 3 months ago
committed by GitHub
parent
commit
f73f7da85c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      files/suspend/rmmod_tb.sh

4
files/suspend/rmmod_tb.sh

@ -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
Loading…
Cancel
Save