in single bracket test in shell, string comparison is single equal sign (man test(1))

Dominique Martinet 2018-06-12 08:57:24 +09:00
parent deca62bb9c
commit b1c985a437

@ -20,7 +20,7 @@ For example. In order to start Sway automatically after logging into tty1, one c
``` bash ``` bash
# If running trom tty1 start sway # If running trom tty1 start sway
if [ $(tty) == "/dev/tty1" ]; then if [ $(tty) = "/dev/tty1" ]; then
sway sway
exit 0 exit 0
fi fi