Skip to content

Commit 436d479

Browse files
committed
quote variables in shell script
1 parent 28dd4ad commit 436d479

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

chrome-tigervnc/start.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ set -euo pipefail
33

44
# start Xvnc server
55
echo "[INFO] Starting Xvnc server"
6-
Xvnc -quiet ${DISPLAY} -SecurityTypes None -geometry ${RESOLUTION} -depth 24 &>/dev/null &
6+
Xvnc -quiet "${DISPLAY}" -SecurityTypes None -geometry "${RESOLUTION}" -depth 24 &>/dev/null &
77
PID_XVNC=$!
88

99
# wait for Xvnc to start
1010
sleep 3
1111

1212
# start openbox
1313
echo "[INFO] Starting Openbox"
14-
DISPLAY=${DISPLAY} openbox-session &
14+
DISPLAY="${DISPLAY}" openbox-session &
1515
PID_OPENBOX=$!
1616

1717
# launch Chrome in a respawn loop
1818
while true; do
1919
echo "[INFO] Launching Chrome"
20-
DISPLAY=${DISPLAY} google-chrome \
20+
DISPLAY="${DISPLAY}" google-chrome \
2121
--disable-gpu \
2222
--disable-software-rasterizer \
2323
--disable-dev-shm-usage \

firefox-tigervnc/start.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ set -euo pipefail
33

44
# start Xvnc server
55
echo "[INFO] Starting Xvnc server"
6-
Xvnc -quiet ${DISPLAY} -SecurityTypes None -geometry ${RESOLUTION} -depth 24 &>/dev/null &
6+
Xvnc -quiet "${DISPLAY}" -SecurityTypes None -geometry "${RESOLUTION}" -depth 24 &>/dev/null &
77
PID_XVNC=$!
88

99
# wait for Xvnc to start
1010
sleep 3
1111

1212
# start openbox
1313
echo "[INFO] Starting Openbox"
14-
DISPLAY=${DISPLAY} openbox-session &
14+
DISPLAY="${DISPLAY}" openbox-session &
1515
PID_OPENBOX=$!
1616

1717
# launch Firefox in a respawn loop
1818
while true; do
1919
echo "[INFO] Launching Firefox"
20-
DISPLAY=${DISPLAY} firefox \
20+
DISPLAY="${DISPLAY}" firefox \
2121
--width=1920 \
2222
--height=1080 \
2323
&>/dev/null

0 commit comments

Comments
 (0)