Skip to content

Commit 00b2c88

Browse files
committed
grml-desktop: appease shellcheck
1 parent 8a10809 commit 00b2c88

5 files changed

Lines changed: 13 additions & 5 deletions

File tree

config/files/GRML_FULL/etc/skel/.xinitrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@
66
# License: This file is licensed under the GPL v2 or any later version.
77
################################################################################
88

9+
# $distri is supposed to be set already
10+
distri=${distri:?}
11+
912
# configuration: by default all scripts from ~/.xinitrc.d are executed,
1013
# but it's possible to configure this through a configuration file
1114
if [ -r "$HOME/.config/${distri}/xinitrc" ] ; then
15+
# shellcheck source=/dev/null
1216
. "$HOME/.config/${distri}/xinitrc"
1317
elif [ -r "$HOME/.config/grml/xinitrc" ] ; then
18+
# shellcheck source=/dev/null
1419
. "$HOME/.config/grml/xinitrc"
1520
fi
1621

config/files/GRML_FULL/etc/skel/.xinitrc.d/grml_keyboard

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ apply_xmodmap_settings() {
2424
if [ -r /etc/default/keyboard ] ; then # Grml >=2018.12
2525
XKBLAYOUT="us" # assume as default
2626

27+
# shellcheck source=/dev/null
2728
. /etc/default/keyboard
2829

2930
if [ "${XKBLAYOUT}" = "us" ] ; then
@@ -40,6 +41,7 @@ if [ -r /etc/default/keyboard ] ; then # Grml >=2018.12
4041
fi
4142
fi
4243
elif [ -r /etc/sysconfig/keyboard ] ; then # older Grml releases
44+
# shellcheck source=/dev/null
4345
. /etc/sysconfig/keyboard
4446
if [ "${XKEYBOARD}" = "us" ] ; then
4547
apply_xmodmap_settings

config/files/GRML_FULL/etc/skel/.xinitrc.d/grml_vnc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ if [ "$XINIT_GRML_VNC" = "false" ] ; then
1111
fi
1212

1313
# if the vnc bootoption sets up the password let's start the vnc server
14-
if [ -e $HOME/.vnc/passwd ]; then
15-
test -f $HOME/.vnc/options && OPTIONS=$(cat $HOME/.vnc/options)
16-
/usr/bin/x11vnc -bg -forever -noxdamage -o $HOME/.vnc/x11vnc.log -rfbauth \
17-
$HOME/.vnc/passwd -auth $HOME/.Xauthority -display $DISPLAY $OPTIONS
14+
if [ -e "$HOME"/.vnc/passwd ]; then
15+
test -f "$HOME"/.vnc/options && OPTIONS=$(cat "$HOME"/.vnc/options)
16+
/usr/bin/x11vnc -bg -forever -noxdamage -o "$HOME"/.vnc/x11vnc.log -rfbauth \
17+
"$HOME"/.vnc/passwd -auth "$HOME"/.Xauthority -display "$DISPLAY" "$OPTIONS"
1818
fi
1919

2020
## END OF FILE #################################################################

config/files/GRML_FULL/etc/skel/.xinitrc.d/grml_xsettings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ fi
2929
# xset -dpms
3030

3131
# xresources
32-
[ -r $HOME/.Xresources ] && xrdb -merge $HOME/.Xresources
32+
[ -r "$HOME"/.Xresources ] && xrdb -merge "$HOME"/.Xresources
3333

3434
## END OF FILE #################################################################
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/sh
2+
# shellcheck source=/dev/null
23
. ~/.xinitrc

0 commit comments

Comments
 (0)