Skip to content

Commit 48443e6

Browse files
committed
fix(SC2166): use [ p ] && [ q ] over [ p -a q ]
1 parent d0a637d commit 48443e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eos-lxdm-gtk3/Xsession

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
echo "Running X session wrapper"
66

7-
if [ $# -eq 1 -a -n "$1" ]; then
7+
if [ $# -eq 1 ] && [ -n "$1" ]; then
88
LXSESSION=$1
99
else
1010
# default session
@@ -53,15 +53,15 @@ xinitdir="/etc/X11/xinit/xinitrc.d"
5353
if [ -d "$xinitdir" ]; then
5454
for script in $xinitdir/*; do
5555
echo "Loading xinit script $script"
56-
if [ -x "$script" -a ! -d "$script" ]; then
56+
if [ -x "$script" ] && ! [ -d "$script" ]; then
5757
. "$script"
5858
fi
5959
done
6060
fi
6161

6262
# Run user xsession shell script
6363
script="$HOME/.xsession"
64-
if [ -x "$script" -a ! -d "$script" ]; then
64+
if [ -x "$script" ] && ! [ -d "$script" ]; then
6565
echo "Loading xsession script $script"
6666
. "$script"
6767
fi

0 commit comments

Comments
 (0)