mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 09:21:28 +00:00
in single bracket test in shell, string comparison is single equal sign (man test(1))
parent
deca62bb9c
commit
b1c985a437
2
Home.md
2
Home.md
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue