From 97f23414b45f4e52ce835b38038a38f43a8ac4de Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 12 May 2018 21:50:35 -0300 Subject: [PATCH] src/profile.sh: remove bashisms in favour of posix sh syntax. --- src/profile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/profile.sh b/src/profile.sh index 3dbdeac..f9c865d 100644 --- a/src/profile.sh +++ b/src/profile.sh @@ -1,8 +1,8 @@ # To avoid potential situation where cdm(1) crashes on every TTY, here we # default to execute cdm(1) on tty1 only, and leave other TTYs untouched. -if [[ "$(tty)" == '/dev/tty1' ]]; then - [[ -n "$CDM_SPAWN" ]] && return +if [ "$(tty)" = '/dev/tty1' ]; then + [ -n "$CDM_SPAWN" ] && return # Avoid executing cdm(1) when X11 has already been started. - [[ -z "$DISPLAY$SSH_TTY$(pgrep xinit)" ]] && exec cdm + [ -z "$DISPLAY$SSH_TTY$(pgrep xinit)" ] && exec cdm fi