refactor(templates): wrap shell variables in double quotes to handle spaces and special characters safely
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
0e4bf5ed1a
commit
156e36e97f
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ -n "$TZ" ]]; then
|
||||
if [[ -f /usr/share/zoneinfo/$TZ ]]; then
|
||||
if [[ -f "/usr/share/zoneinfo/$TZ" ]]; then
|
||||
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
|
||||
echo "$TZ" > /etc/timezone
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user